|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-03-27 13:07:19
I think there may also be a cute way to do this using bitmasking... I need
to bug Krzysztof to tell me his latest and greatest way of doing this...
Krzysztof, at the template programming workshop you mentioned a better way
for speficying parameters for a generator (a way better than described in
your book?). Would you mind telling us about it?
Cheers,
Jeremy
On Mon, 26 Mar 2001, David Abrahams wrote:
abraha> In the generative interfaces I have seen, the parameters
abraha> name themselves. Using named template parameters is
abraha> overkill in this situation. What we want, for ease-of-use,
abraha> is simply an interface that allows the parameters to be
abraha> passed in any order. That is,
abraha>
abraha> mutex_generator<checked, nonrecursive>::type
abraha>
abraha> is self-documenting, but should be equivalent to
abraha>
abraha> mutex_generator<nonrecursive, checked>::type
abraha>
abraha> -Dave
----------------------------------------------------------------------
Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
Ph.D. Candidate email: jsiek_at_[hidden]
Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk