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;