Ticket #6524 (closed Feature Requests: fixed)
Better header segregation
|Reported by:||andysem||Owned by:||igaztanaga|
|Milestone:||To Be Determined||Component:||move|
Please, provide better segregated headers. Currently, including <boost/move/move.hpp> causes inclusion of a few heavy STL headers (algorithm, memory) along with several Boost headers. Most of these dependencies are required to implement move algorithms and iterators.
I would like to have a header that only defines facilities to define movable classes (the BOOST_RV_REF and other related macros). Ideally, when C++11 rvalue references are supported by compiler, this header should not include anything but <boost/config.hpp>. When native rvalue references are not available, the header should only contain facilities to implement move emulation (boost::rv and related).
Algorithms (move, forward, etc.) and iterators should be available through separate headers. Preferably, move and forward algorithms should be available in their own headers as these ones are often the only algorithms needed in the user's code.