Fixes #280 ("Several containers don't support non-movable types when move assigning")

This commit is contained in:
Ion Gaztañaga
2024-05-23 23:28:54 +02:00
parent c38fe90e9a
commit 397fbda8be
26 changed files with 729 additions and 362 deletions
+12
View File
@@ -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 {