Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-04-02 11:31:41


At 09:41 AM 3/26/2001, David Abrahams wrote:

>In the generative interfaces I have seen, the parameters name themselves.
>Using named template parameters is overkill in this situation. What we
>want,
>for ease-of-use, is simply an interface that allows the parameters to be
>passed in any order. That is,
>
> mutex_generator<checked, nonrecursive>::type
>
>is self-documenting, but should be equivalent to
>
> mutex_generator<nonrecursive, checked>::type

The smart pointer experiments I posted last fall did that. See
http://groups.yahoo.com/group/boost/files/TMPX/experiment6.hpp

Thus you could code:

   smart_ptr_generator< my_type, invasive | implicit_convert >::type x;

or:

   smart_ptr_generator< my_type, implicit_convert | invasive >::type x;

--Beman


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