|
Boost : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-11-15 14:26:57
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk