forked from boostorg/container
Fixes #280 ("Several containers don't support non-movable types when move assigning")
This commit is contained in:
@@ -37,6 +37,11 @@ struct is_move_assignable
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
struct is_move_constructible
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////
|
||||
@@ -594,6 +599,13 @@ struct life_count< non_copymovable_int >
|
||||
{ return c == non_copymovable_int::count; }
|
||||
};
|
||||
|
||||
template<>
|
||||
struct is_move_constructible<non_copymovable_int>
|
||||
{
|
||||
static const bool value = false;
|
||||
};
|
||||
|
||||
|
||||
} //namespace test {
|
||||
} //namespace container {
|
||||
} //namespace boost {
|
||||
|
||||
Reference in New Issue
Block a user