Added BOOST_MOVE_RET

This commit is contained in:
Ion Gaztañaga
2014-02-15 23:04:15 +01:00
parent 51dc02e043
commit 062000ed68
7 changed files with 496 additions and 129 deletions
+16 -2
View File
@@ -13,8 +13,8 @@
#include <boost/move/detail/config_begin.hpp>
//[movable_definition
//header file "copy_movable.hpp"
//[copy_movable_definition
//header file "copymovable.hpp"
#include <boost/move/core.hpp>
//A copy_movable class
@@ -43,6 +43,20 @@ class copy_movable
{ return value_ == 0; }
};
//A copyable-only class
class copyable
{};
//A copyable-only class
class non_copy_movable
{
public:
non_copy_movable(){}
private:
non_copy_movable(const non_copy_movable&);
non_copy_movable& operator=(const non_copy_movable&);
};
//]
#include <boost/move/detail/config_end.hpp>