Don't test allocators if they aren't supported

[SVN r14695]
This commit is contained in:
Douglas Gregor
2002-08-05 15:05:34 +00:00
parent 021063eddf
commit 39e2be08cb

View File

@ -669,6 +669,7 @@ static void do_nothing() {}
static void test_allocator()
{
#ifndef BOOST_NO_STD_ALLOCATOR
boost::function<int (int, int), counting_allocator<int> > f;
f = plus<int>();
f.clear();
@ -692,6 +693,7 @@ static void test_allocator()
dealloc_count = 0;
fv = &do_nothing;
fv.clear();
#endif // ndef BOOST_NO_STD_ALLOCATOR
}
int test_main(int, char* [])