Boost logo

Boost :

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

on Thu Nov 01 2007, John Torjo <> 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:


> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at