Boost logo

Boost :

Subject: Re: [boost] [any] last commit breaks program_options
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2013-04-15 05:19:26


2013/4/15 Jürgen Hunold <jhunold_at_gmx.eu>:
> Hi!
>
> It seems that introducing move semantics to Boot.Any in r 83901 breaks
> compilation of program_options.
>
> /home/hunold/src/devel/boost/boost/program_options/variables_map.hpp:58:38:
> note: no known conversion for argument 1 from
> ‘boost::program_options::variable_value’ to
> ‘boost::program_options::variable_value&’
>
> Full build log attached.
>
> Any Ideas?

This looks like Boost.Move known limitation:
http://www.boost.org/doc/libs/1_53_0/doc/html/move/emulation_limitations.html#move.emulation_limitations.assignment_operator

I'm afraid that this will confuse a lot of people who use Boost.Any...
May be it would be better to disable ravlue emulation and use rvalues
only in C++11?

--
Best regards,
Antony Polukhin

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