Boost logo

Boost Users :

Subject: Re: [Boost-users] functors created by boost::bind and move semantic
From: michi7x7 (mailing-lists_at_[hidden])
Date: 2011-01-15 15:10:04


Am 15.01.2011 19:52, schrieb Marat Abrarov:
> Hi, Boost Users.
>
> Does anybody know why functional objects created by means of boost::bind
> have no move constructors. It would be rather useful especially when
> such functional objects consist of some smart pointers (like
> boost::shared_ptr).
> For example, move constructor of boost::shared_ptr is
> very light (comparing to its copy constructor) - it doesn't use any CAS at
> all.
>
> May be someone know the reason of move constructor absence or maybe
> someone know any plans of implementing it.
>
> Abrarov Marat.
>
Hi,

I wondered about that too. The reason might be the huge ammounts of code
that need to be changed within boost::function.
However, I'm sure it will come soon.

Regards,

michi7x7


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