13 Apr
2014
13 Apr
'14
12:59 p.m.
AMDG On 04/12/2014 02:33 PM, Andrzej Krzemienski wrote:
Hi, I am trying to figure out what the best way to enable move semantics in Boost.Optional. I tried to pick at how Boost.Variant does it. If I understand correctly, move operations are only defined if compiler supports rvalue references. I wonder why it doesn't use Boost.Move, which would enable move semantics even for compilers w/o rvalue references. Is there any reason for this (that I should also take into account for Boost.Optional)?
Boost.Move is not completely backwards compatible. i.e. adding it to an existing class can break user code. In Christ, Steven Watanabe