forked from boostorg/move
Added BOOST_MOVE_RET
This commit is contained in:
+16
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user