El 04/03/2010 10:03 p.m., anony escribió:
I have this situation:
void my_thread(std::string const& a, std::string const& b) { }
void spawner() { boost::thread(boost::function
(my_thread), "bla", "lala"); } This works, but is it possible that the string temporaries are destroyed before the thread starts running?
Extract from Boost.Thread documentation at
http://www.boost.org/doc/libs/1_42_0/doc/html/thread/thread_management.html#...
"Thread Constructor with arguments
template