From 165b73fa07934e85faec6ecff51120d9dab568b5 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 4 Mar 2004 10:28:29 +0000 Subject: [PATCH] fixed typo [SVN r2023] --- doc/named_params.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/named_params.rst b/doc/named_params.rst index c12930d..96ff7f2 100755 --- a/doc/named_params.rst +++ b/doc/named_params.rst @@ -4,6 +4,7 @@ .. |(logo)| image:: ../../../c++boost.gif :alt: Boost + :class: boost-logo __ ../../../index.htm @@ -370,19 +371,19 @@ we supply a macro that generates the boilerplate code. Synopsis:: BOOST_NAMED_PARAMS_FUN( - return_type, function_name, keywords_type - , min_arity, max_arity + return_type, function_name + , min_arity, max_arity, keywords_type ); To generate all the forwarding functions and the implementation function for our example, we need only apply ``BOOST_NAMED_PARAMS_FUN`` this way:: - BOOST_NAMED_PARAMS_FUN(void, foo, foo_keywords, 0, 2) + BOOST_NAMED_PARAMS_FUN(void, foo, 0, 2, foo_keywords) { std::cout - << params[name | "unnamed"] << " = " - << params[value | 0] << "\n"; + << p[name | "unnamed"] << " = " + << p[value | 0] << "\n"; } Portability