Boost logo

Boost :

Subject: Re: [boost] [any] Divergence between Boost.Any and standard library proposal
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-05-03 17:07:42


Le 03/05/13 18:30, Antony Polukhin a écrit :
> 2013/5/3 Beman Dawes <bdawes_at_[hidden]>:
>> A fresh draft of the proposal is up at
>> http://beman.github.com/dot16/any-proposal.html
>>
>> There are also some other differences:
>> * boost implementation has perfect forwarding of ValueType
>> (constructor and operator=)
+1
> * ValueType requirement is MoveConstructible or CopyConstructible (it
> can be used with move only types)
+1
> * proposal misses noexcept in for bad_any_cast: virtual const char*
> what() const;
What about adding to Boost.Config helpers

#if ! defined BOOST_NOEXCEPT_OR_THROW
#ifdef BOOST_NO_CXX11_NOEXCEPT
# define BOOST_NOEXCEPT_OR_THROW throw()
#else
# define BOOST_NOEXCEPT_OR_THROW noexcept
#endif
#endif

Vicente


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