Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-11-01 15:03:57


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.

-- 
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