Boost logo

Boost :

From: John Torjo (john.groups_at_[hidden])
Date: 2007-11-01 16:19:51


I saw the void_ class.

However, what's the boost counterpart of my use_default class?

Best,
John
> on Thu Nov 01 2007, John Torjo <john.groups-AT-torjo.com> wrote:
>
>
>> Hi all,
>>
>> I know the Boost.Parameter allows advanced defaults when dealing with
>> templated parameters - for templated classes.
>> But shouldn't we have a simple interface, like this:
>>
>
> ...<snip>...
>
>
>> if can specify only the params I want, specifying "default_"
>> for the rest:
>>
>> logger< some_formatter> l;
>> logger< default_, some_destination> l2;
>> logger< some_fmt, default_, shared_ptr<some_fmt> > l3;
>>
>
> typedef boost::parameter::void_ default_;
>
> should give you what you want.
>
>

-- 
http://John.Torjo.com -- C++ expert
... call me only if you want things done right

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