From 97f72b7f8b4a919620abadafd82e1f181bb0b3e5 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 19 Jul 2002 19:17:14 +0000 Subject: [PATCH] Don't try to use function types inline for those silly compilers that can't handle it (e.g., Borland C++ 5.5.1) [SVN r14534] --- test/allocator_test.cpp | 3 ++- test/function_test.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/allocator_test.cpp b/test/allocator_test.cpp index 0345608..e0721de 100644 --- a/test/allocator_test.cpp +++ b/test/allocator_test.cpp @@ -84,7 +84,8 @@ test_main(int, char*[]) fv = &do_nothing; fv.clear(); - function > f2; alloc_count = 0; dealloc_count = 0; diff --git a/test/function_test.cpp b/test/function_test.cpp index 8b09ce5..fef691c 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -647,10 +647,12 @@ test_new_syntax() v2(); BOOST_TEST(global_int == 5); - function cat(&string_cat); + typedef string Fcat(const string& x, const string& y); + function cat(&string_cat); BOOST_TEST(cat("str", "ing") == "string"); - function sum(&sum_ints); + typedef int Fsum(short lhs, short rhs); + function sum(&sum_ints); BOOST_TEST(sum(2, 3) == 5); }