forked from boostorg/container
Remove Boost.StaticAsser dependency
This commit is contained in:
@@ -34,49 +34,49 @@ int main()
|
||||
{
|
||||
using namespace boost::container;
|
||||
//Using dummy classes
|
||||
BOOST_STATIC_ASSERT(( false == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( false == uses_allocator
|
||||
< not_uses_allocator, int>::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( false == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( false == uses_allocator
|
||||
< uses_allocator_and_not_convertible_to_int, int>::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< uses_allocator_and_convertible_to_int, int>::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< uses_erased_type_allocator, int>::value ));
|
||||
|
||||
//Using an allocator-like class
|
||||
BOOST_STATIC_ASSERT(( false == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( false == uses_allocator
|
||||
< allocator_argument_tester<NotUsesAllocator, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< allocator_argument_tester<ConstructiblePrefix, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< allocator_argument_tester<ConstructibleSuffix, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< allocator_argument_tester<ErasedTypeSuffix, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_STATIC_ASSERT(( true == uses_allocator
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == uses_allocator
|
||||
< allocator_argument_tester<ErasedTypePrefix, 0>
|
||||
, propagation_test_allocator<float, 0>
|
||||
>::value ));
|
||||
BOOST_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
< allocator_argument_tester<ConstructiblePrefix, 0> >::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
< allocator_argument_tester<ConstructibleSuffix, 0> >::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_prefix
|
||||
< allocator_argument_tester<ErasedTypePrefix, 0> >::value ));
|
||||
|
||||
BOOST_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
BOOST_CONTAINER_STATIC_ASSERT(( true == constructible_with_allocator_suffix
|
||||
< allocator_argument_tester<ErasedTypeSuffix, 0> >::value ));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user