Boost logo

Boost :

Subject: [boost] Functors created by boost::bind and move semantic
From: Marat Abrarov (abrarov_at_[hidden])
Date: 2011-01-31 12:21:34

Hi, Boost Users and/or Developers.

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
(which is the main overhead of boost::shared_ptr).

May be someone know the reason of move constructor absence or
maybe someone know any plans of implementing it.

Abrarov Marat.

Boost list run by bdawes at, gregod at, cpdaniel at, john at