2 Dec
2014
2 Dec
'14
1:06 p.m.
#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.