Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2004-05-06 11:21:15


From: Vladimir Prus <ghost_at_[hidden]>
> Neal D. Becker wrote:
> > 1. Is it possible to expand --help so that it also gives the default values
> > of options? Obviously, it's not likely to tell defaults that it doesn't no
> > about, but at least the ones specified by default_value()?
>
> I need to think about it. The biggest issue I see that that it would mean that
> if you have option of type T then T would be required to have operator<<,
> which might be too severe limitation.

Require that all default_value()'s provide a default value string either from
operator << or explicitly when supplying the default value?

default_value(x) -> must support operator <<(x)
default_value(x, "x") -> no need for operator <<(x)

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

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