From 39e2be08cb6896cab816152f956646f766141087 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 5 Aug 2002 15:05:34 +0000 Subject: [PATCH] Don't test allocators if they aren't supported [SVN r14695] --- test/function_test.cpp | 2 ++ 1 file changed, 2 insertions(+) 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* [])