I want to do something simple like
void returnVal(int a, int &b) { b = a; } int main() { int b = 0; boost::thread t(returnVal,1,b); t.join(); } This throws errors. Cannot convert int& to int. There must be a simple way to get return values in boost, and if there is not does anyone have a decent explanation as to why?
a? And you want to retrieve it by readingbafterwards?