Boost logo

Boost :

Subject: Re: [boost] Help test MSVC 14 CTP compiler
From: John Maddock (boost.regex_at_[hidden])
Date: 2014-12-02 08:06:33


> #include <boost/static_assert.hpp>
> #include <boost/type_traits/is_nothrow_move_assignable.hpp>
>
> struct NothrowCtor {
> NothrowCtor(NothrowCtor&&) BOOST_NOEXCEPT_IF(true) {};
> void operator=(NothrowCtor&&) BOOST_NOEXCEPT_IF(false) {};
> };
>
> BOOST_STATIC_ASSERT(!::boost::is_nothrow_move_assignable<NothrowCtor>::value);
>
> int main() {}

It fails. In fact I can't seem to get is_nothrow_move_assignable to
return anything other than true for that compiler :(

Will investigate, John.


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