diff --git a/test/function_test.cpp b/test/function_test.cpp index 861dec0..73d3761 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -669,6 +669,7 @@ static void do_nothing() {} static void test_allocator() { +#ifndef BOOST_NO_STD_ALLOCATOR boost::function > f; f = plus(); 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* [])