$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?