
15 Nov
2004
15 Nov
'04
7:26 p.m.
Peter Dimov wrote:
Rene Rivera wrote:
[...]
#include <boost/named_params.hpp>
struct name_t; // tag types struct value_t;
namespace { boost::keyword<name_t> name; // keyword objects
boost::keyword<struct name_t> name;
is even better. ;-)
Yes it is :-) -- But I was going under the suggestion in the docs: [Note: the tag types should generally not be declared in an unnamed namespace] It would be nice to see a rational for that note in the docs. Only one I can think of is the increased number of keyword objects, and possibly increased number of the function instantiations. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq