Boost logo

Boost :

From: Braddock Gaskill (braddock_at_[hidden])
Date: 2007-03-02 07:32:47


On Thu, 01 Mar 2007 19:32:33 +0000, Steven Watanabe wrote:
> it isn't ok.
>
> boost/function/function_template.hpp lines 653-659
>
> template<typename Functor>
> void assign_to(Functor f)
> {
> static vtable_type stored_vtable(f);
> if (stored_vtable.assign_to(f, functor)) vtable = &stored_vtable;
> else vtable = 0;
> }
>
> function static is not thread safe

You've just succeeded in scaring the hell out of me.
Just how unsafe is boost::function?

        -braddock


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk