|
Boost Users : |
Subject: [Boost-users] Boost.Thread and Boost.Function problems?
From: anony (janezz55_at_[hidden])
Date: 2010-03-04 20:03:34
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?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net