From 4fecf9b81f8763276c34199f1dd96c55088bd2f0 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 15 Jan 2004 20:24:42 +0000 Subject: [PATCH] fixes [SVN r1879] --- test/named_params_test.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test/named_params_test.cpp b/test/named_params_test.cpp index 6348f9a..52d17ae 100755 --- a/test/named_params_test.cpp +++ b/test/named_params_test.cpp @@ -62,17 +62,22 @@ namespace test > {}; - double value_default() + struct value_default { - return 666.222; - } + typedef double result_type; + + double operator()() const + { + return 666.222; + } + }; template int f_impl(const Params& p) { p[tester]( p[name] - , p[value || &value_default ] + , p[value || value_default() ] , p[index | 999] ); return 1;