From e4b9ac6a30fe67a8a6f54491cc211fd16380b691 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Sat, 17 Apr 2004 11:08:24 +0000 Subject: [PATCH] operator, on named args produce a list automatically [SVN r2142] --- test/named_params_test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/named_params_test.cpp b/test/named_params_test.cpp index e8b5534..7e718f5 100755 --- a/test/named_params_test.cpp +++ b/test/named_params_test.cpp @@ -72,6 +72,12 @@ namespace test return f_impl(f_keywords()(t, name_)); } + template + int f_list(Params const& params) + { + return f_impl(params); + } + template bool equal(T const& x, T const& y) { @@ -150,6 +156,12 @@ int main() test::values("foo", 666.222, 56) , index = boost::ref(x), name = "foo" ); + + f_list(( + tester = test::values("foo", 666.222, 56) + , index = boost::ref(x) + , name = "foo" + )); //f(index = 56, name = 55); // won't compile return 0;