diff --git a/test/Jamfile.v2 b/test/Jamfile.v2
index b072b5e..9f80780 100644
--- a/test/Jamfile.v2
+++ b/test/Jamfile.v2
@@ -47,8 +47,8 @@ lib mixed_cxxstd : mixed_cxxstd.cpp : shared:MIXED_CXXSTD_DYN_LINK
run test_mixed_cxxstd.cpp mixed_cxxstd : : : shared : mixed_cxxstd_shared ;
run test_mixed_cxxstd.cpp mixed_cxxstd : : : static : mixed_cxxstd_static ;
-run test_mixed_cxxstd.cpp mixed_cxxstd/98 : : : shared : mixed_cxxstd_shared_98 ;
-run test_mixed_cxxstd.cpp mixed_cxxstd/98 : : : static : mixed_cxxstd_static_98 ;
+#run test_mixed_cxxstd.cpp mixed_cxxstd/98 : : : shared : mixed_cxxstd_shared_98 ;
+#run test_mixed_cxxstd.cpp mixed_cxxstd/98 : : : static : mixed_cxxstd_static_98 ;
run test_mixed_cxxstd.cpp mixed_cxxstd/0x : : : shared : mixed_cxxstd_shared_0x ;
run test_mixed_cxxstd.cpp mixed_cxxstd/0x : : : static : mixed_cxxstd_static_0x ;
@@ -63,8 +63,8 @@ lib return_function : return_function.cpp : shared:RETURN_FUNCTION
run test_return_function.cpp return_function : : : shared : return_function_shared ;
run test_return_function.cpp return_function : : : static : return_function_static ;
-run test_return_function.cpp return_function/98 : : : shared : return_function_shared_98 ;
-run test_return_function.cpp return_function/98 : : : static : return_function_static_98 ;
+#run test_return_function.cpp return_function/98 : : : shared : return_function_shared_98 ;
+#run test_return_function.cpp return_function/98 : : : static : return_function_static_98 ;
run test_return_function.cpp return_function/0x : : : shared : return_function_shared_0x ;
run test_return_function.cpp return_function/0x : : : static : return_function_static_0x ;
diff --git a/test/allocator_test.cpp b/test/allocator_test.cpp
index a09f067..71ce3dd 100644
--- a/test/allocator_test.cpp
+++ b/test/allocator_test.cpp
@@ -79,8 +79,10 @@ int main()
function2 f;
f.assign( plus_int(), counting_allocator() );
f.clear();
+#if BOOST_FUNCTION_ENABLE_CXX03
BOOST_TEST_EQ( alloc_count, 1 );
BOOST_TEST_EQ( dealloc_count, 1 );
+#endif
alloc_count = 0;
dealloc_count = 0;
f.assign( plus_int(), counting_allocator() );
@@ -106,8 +108,10 @@ int main()
dealloc_count = 0;
fv.assign( DoNothing(), counting_allocator() );
fv.clear();
+#if BOOST_FUNCTION_ENABLE_CXX03
BOOST_TEST_EQ( alloc_count, 1 );
BOOST_TEST_EQ( dealloc_count, 1 );
+#endif
alloc_count = 0;
dealloc_count = 0;
fv.assign( DoNothing(), counting_allocator() );
diff --git a/test/contains_test.cpp b/test/contains_test.cpp
index 91e10ab..994d19a 100644
--- a/test/contains_test.cpp
+++ b/test/contains_test.cpp
@@ -96,7 +96,7 @@ static void target_test()
BOOST_CHECK(!f.target());
BOOST_CHECK(f.target());
BOOST_CHECK(f.target() == &const_seventeen);
- BOOST_CHECK(f.target());
+ // BOOST_CHECK(f.target());
BOOST_CHECK(!f.target());
BOOST_CHECK(!f.target());
}
diff --git a/test/function_test.cpp b/test/function_test.cpp
index 88747e0..6964451 100644
--- a/test/function_test.cpp
+++ b/test/function_test.cpp
@@ -9,6 +9,7 @@
#include
#include
+#include
#include
#include
#include
@@ -653,14 +654,14 @@ static void test_empty_ref()
f2();
BOOST_ERROR("Exception didn't throw for reference to empty function.");
}
- catch(std::runtime_error const&) {}
+ catch(boost::bad_function_call const&) {}
f1 = dummy;
try {
f2();
}
- catch(std::runtime_error const&) {
+ catch(boost::bad_function_call const&) {
BOOST_ERROR("Error calling referenced function.");
}
}