From a99e88d6d51bd9e453f9e26ba06634fea7b6f185 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 23 Oct 2003 21:52:05 +0000 Subject: [PATCH] simplifications, renaming, clarifications [SVN r1700] --- test/named_params_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/named_params_test.cpp b/test/named_params_test.cpp index 50ab859..050ee33 100755 --- a/test/named_params_test.cpp +++ b/test/named_params_test.cpp @@ -15,7 +15,7 @@ using boost::keywords; struct name_t : keyword { // this should go in a wrapper type, like arg - typedef boost::is_convertible predicate_type; + typedef boost::is_convertible predicate; using keyword::operator=; } name; @@ -71,6 +71,7 @@ int f(const Name& name_, } +struct Foo { operator const char*() const { return "foo"; } }; int main() { using test::f; @@ -82,7 +83,7 @@ int main() #if BOOST_MSVC == 1200 // sadly templated operator= just doesn't work. f(index(56), name("foo")); #else - f(index = 56, name = "foo"); + f(index = 56, name = Foo()); #endif //f(index = 56, name = 55); // won't compile return 0;