In my version of the just::thread C++ Thread Library (v1.0) at least the ref() function, defined by including function, appears to be in the tr1 namespace, so in the examples, calls like:
std::thread t(increment,std::ref(x));
need to be modified thus:
std::thread t(increment,std::tr1::ref(x));
Other than that, it works fine. :-)
Recent comments
10 sec ago
2 hours 55 min ago
2 hours 55 min ago
13 hours 9 min ago
14 hours 37 min ago
14 hours 37 min ago
14 hours 37 min ago
21 hours 54 min ago
2 weeks 3 days ago
4 weeks 4 days ago