Hi All

Is it dangerous to write static Boost.Functions or Boost.Lamda placeholders in a multi-theaded
context? I think that might be a really stoopid quesion - I'm just checking!

Thx

- Rob.

eg,

#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 );
}