Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2008-02-01 10:45:45


Hansi Hansi wrote:
> I have looked another time to the implementation of the histogram. If
> we want to implement it in the same class density, than it is needed
> to provide default parameter for density_cache_size or min/max. Is it
> possible to ensure that either density_cache_size or min/max is
> provided as parameter? Sorry for the question but I'm not so familiar
> with parameters...
>

Yes, it's possible. IIRC, a parameter pack is a valid MPL sequence, so
you can us MPL algorithms to detect the presence or absence of any
parameter.

-- 
Eric Niebler
Boost Consulting
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