Is it dangerous to write static Boost.Functions or Boost.Lamda placeholders in a multi-theaded
- Rob.
#include <boost/function.hpp>
#include <boost/lambda/bind.hpp>
void f( )
{
namespace ll = boost::lambda;
using boost::function;
typedef std::pair<int, int> int_pair;
static ll::placeholder1_type x;
static function<int(const int_pair &)> second = ll::bind( & int_pair::second, x );
}