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

Thus you could code:

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


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


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