From a78ae715d2e4966b8554d6216a69fed6a1b9ead0 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 25 Jun 2001 11:27:54 +0000 Subject: [PATCH] Changed function usage to try and make the code portable and standard conforming - may not rigorously test anymore though in some cases (VC6 for eg). [SVN r10419] --- tests/is_function_test.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/is_function_test.cpp b/tests/is_function_test.cpp index 98e73f4..cac26ac 100644 --- a/tests/is_function_test.cpp +++ b/tests/is_function_test.cpp @@ -58,20 +58,16 @@ void is_function_tester::check() #endif } -#ifndef __SUNPRO_CC template -void is_function_test(T& foo) +void is_function_test(T* foo) { is_function_tester::check(); } -#endif -#ifndef BOOST_MSVC template -void is_function_test(const T& foo) +void is_function_test(T foo) { is_function_tester::check(); } -#endif void foo0(){} @@ -83,11 +79,11 @@ void foo4(int, bool, int*, int[], int, int, int, int, int){} int cpp_main(int argc, char* argv[]) { - is_function_test(foo0); - is_function_test(foo1); - is_function_test(foo2); - is_function_test(foo3); - is_function_test(foo4); + is_function_test(&foo0); + is_function_test(&foo1); + is_function_test(&foo2); + is_function_test(&foo3); + is_function_test(&foo4); value_test(false, ::boost::is_function::value); value_test(false, ::boost::is_function::value);