From 650b8089f12e768f576a9efbe21b08132de113c0 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 15 Jan 2004 11:16:23 +0000 Subject: [PATCH] function pointer special case for default values [SVN r1875] --- test/named_params_test.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/named_params_test.cpp b/test/named_params_test.cpp index b5146a5..6348f9a 100755 --- a/test/named_params_test.cpp +++ b/test/named_params_test.cpp @@ -62,22 +62,17 @@ namespace test > {}; - struct value_default + double value_default() { - typedef double result_type; - - double operator()() const - { - return 666.222; - } - }; + 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;