allocator_test.cpp:

- Remove partial specialization-specific code

function_test.cpp:
  - Uses BOOST_FUNCTION_NO_DEPRECATED
  - Use only the new syntax
  - Test the allocator parameter

deprecated_syntax_test.cpp:
  - Test the deprecated syntax


[SVN r14684]
This commit is contained in:
Douglas Gregor
2002-08-05 06:13:32 +00:00
parent 694ebbb301
commit 232069aa00
3 changed files with 725 additions and 57 deletions

View File

@ -84,17 +84,5 @@ test_main(int, char*[])
fv = &do_nothing;
fv.clear();
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
typedef int Ftype(int, int);
function<Ftype, empty_function_policy, empty_function_mixin,
counting_allocator<int> > f2;
alloc_count = 0;
dealloc_count = 0;
f2 = plus<int>();
f2.clear();
BOOST_TEST(alloc_count == 1);
BOOST_TEST(dealloc_count == 1);
#endif
return 0;
}