Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-15 14:56:59


"Peter Dimov" <pdimov_at_[hidden]> writes:

> 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. ;-)

You mean, leave out the

 struct name_t; // tag types
 struct value_t;

declarations?

I didn't even know you could do that! You are truly an evil genius.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk