- Splitted utility.hpp into utility_core.hpp and utility.hpp. The first one implements move() and forward() minimizing external dependencies. utility.hpp includes utility_core.hpp and implemente move_if_noexcept.cpp

- Changed move_if_noexcept with a single function

- Changed test case to use boost/core/lightweight_test.hpp

- Added boost::is_nothrow_move_constructible<T>::value to  is_nothrow_move_constructible_or_uncopyable so types with only a non-throwing move constructor is forwarded with move_if_noexcept.

-
This commit is contained in:
Ion Gaztañaga
2014-08-18 02:03:35 +02:00
parent bb00439e4f
commit 3c56780e0e
10 changed files with 407 additions and 195 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
//////////////////////////////////////////////////////////////////////////////
#include <boost/move/detail/config_begin.hpp>
#include <boost/move/utility.hpp>
#include <boost/core/lightweight_test.hpp>
#include "../example/movable.hpp"
#include "../example/copymovable.hpp"
#include <boost/static_assert.hpp>
@@ -222,7 +223,7 @@ int main()
BOOST_CHECK(!m4.moved());
}
return 0;
return boost::report_errors();
}
#include <boost/move/detail/config_end.hpp>