
5 Mar
2010
5 Mar
'10
1:03 a.m.
I have this situation: void my_thread(std::string const& a, std::string const& b) { } void spawner() { boost::thread(boost::function<void (std::string const&, std::string const&>(my_thread), "bla", "lala"); } This works, but is it possible that the string temporaries are destroyed before the thread starts running?