Don't test new syntax if partial specialization is unavailable

[SVN r14536]
This commit is contained in:
Douglas Gregor committed 2002-07-19 19:42:25 +00:00
1 parent a0bd17560f
commit 84bdb40567
2 files changed
+4

No files matched your search

+2
View File
@@ -84,6 +84,7 @@ 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;
@@ -93,6 +94,7 @@ test_main(int, char*[])
f2.clear();
BOOST_TEST(alloc_count == 1);
BOOST_TEST(dealloc_count == 1);
#endif
return 0;
}