1
0
forked from boostorg/core

Update unit tests

This commit is contained in:
Glen Fernandes
2021-12-08 10:26:49 -05:00
parent c8479b4eca
commit 6da7958281
12 changed files with 15 additions and 53 deletions

View File

@@ -14,21 +14,19 @@ struct A1 {
typedef T value_type;
};
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
template<class T>
struct A2 {
typedef T value_type;
typedef std::true_type propagate_on_container_move_assignment;
struct propagate_on_container_move_assignment {
static const bool value = true;
};
};
#endif
int main()
{
BOOST_TEST_TRAIT_FALSE((boost::
allocator_propagate_on_container_move_assignment<A1<int> >::type));
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
BOOST_TEST_TRAIT_TRUE((boost::
allocator_propagate_on_container_move_assignment<A2<int> >::type));
#endif
return boost::report_errors();
}