title: C++: Simple return value from std::thread?
body: <p>With win32 threads I have the straight forward <code>GetExitCodeThread()</code> that gives me the value which the thread function returned. I'm looking for something similar for <code>std::thread</code> (or boost threads)<br>
  As I understand this can be done with futures but how exactly?</p>