mirror of
https://github.com/boostorg/intrusive.git
synced 2025-10-04 12:20:56 +02:00
Added support for node and value pointers non-convertible from raw references
This commit is contained in:
@@ -202,7 +202,7 @@ class test_main_template<VoidPointer, false, Default_Holder>
|
||||
};
|
||||
|
||||
// container generator which ignores further parametrization, except for compare option
|
||||
template < typename Value_Traits, bool Constant_Time_Size, typename Header_Holder >
|
||||
template < typename Value_Traits, bool ConstantTimeSize, typename HeaderHolder >
|
||||
struct Get_Preset_Container
|
||||
{
|
||||
template < class
|
||||
@@ -219,33 +219,33 @@ struct Get_Preset_Container
|
||||
|
||||
typedef boost::intrusive::treap_set< typename Value_Traits::value_type,
|
||||
value_traits< Value_Traits >,
|
||||
constant_time_size< Constant_Time_Size >,
|
||||
constant_time_size< ConstantTimeSize >,
|
||||
compare< compare_option >,
|
||||
header_holder_type< Header_Holder >
|
||||
header_holder_type< HeaderHolder >
|
||||
> type;
|
||||
};
|
||||
};
|
||||
|
||||
template < bool Constant_Time_Size >
|
||||
template < bool ConstantTimeSize >
|
||||
struct test_main_template_bptr
|
||||
{
|
||||
void operator () ()
|
||||
{
|
||||
typedef BPtr_Value value_type;
|
||||
typedef BPtr_Value_Traits< Tree_BPtr_Node_Traits > value_traits;
|
||||
typedef Bounded_Allocator< value_type > allocator_type;
|
||||
typedef bounded_allocator< value_type > allocator_type;
|
||||
|
||||
allocator_type::init();
|
||||
test::test_generic_set< value_traits,
|
||||
Get_Preset_Container< value_traits, Constant_Time_Size,
|
||||
Bounded_Pointer_Holder< value_type > >::template GetContainer
|
||||
Get_Preset_Container< value_traits, ConstantTimeSize,
|
||||
bounded_pointer_holder< value_type > >::template GetContainer
|
||||
>::test_all();
|
||||
assert(allocator_type::is_clear());
|
||||
allocator_type::destroy();
|
||||
}
|
||||
};
|
||||
|
||||
int main( int, char* [] )
|
||||
int main()
|
||||
{
|
||||
// test (plain/smart pointers) x (nonconst/const size) x (void node allocator)
|
||||
test_main_template<void*, false, true>()();
|
||||
|
Reference in New Issue
Block a user