From ab2251b85c3d77083a529219900312a2dafe068e Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 23 Oct 2003 16:23:46 +0000 Subject: [PATCH] vc6 progress [SVN r1696] --- test/named_params_test.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/named_params_test.cpp b/test/named_params_test.cpp index 81059d3..50ab859 100755 --- a/test/named_params_test.cpp +++ b/test/named_params_test.cpp @@ -29,11 +29,13 @@ struct index_t : keyword using keyword::operator=; } index; -typedef keywords< +struct f_keywords // vc6 is happier with inheritance than with a typedef + : keywords< name_t , value_t , index_t -> f_keywords; + > +{}; template int f_impl(const Params& p) @@ -77,7 +79,12 @@ int main() using test::index; f("foo", "bar", "baz"); +#if BOOST_MSVC == 1200 // sadly templated operator= just doesn't work. + f(index(56), name("foo")); +#else f(index = 56, name = "foo"); +#endif //f(index = 56, name = 55); // won't compile + return 0; }