|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-04-04 20:03:47
On Wed, 4 Apr 2001, David Abrahams wrote:
abraha> argument deduction are one example. Another example is the that of
abraha> "forwarding constructors" for such things as smart pointers (i.e. imagine
abraha> you could construct auto_ptr<T> with the arguments that get passed to any of
abraha> T's constructors, thereby building the referent). I had to use these all
abraha> over the place in the Boost.Python library
Have you seen the solution for forwarding constructors in the paper at the
C++ Workshop in Erfurt?
http://oonumerics.org/tmpw00/eisenecker.pdf
I'm not sure it has everything you were looking for, but it might be
pretty close. I tried the technique out in the MTL prototype I posted. It
seemed to work pretty well.
Cheers,
Jeremy
----------------------------------------------------------------------
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