
4 Mar
2010
4 Mar
'10
6:03 p.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?