|
Boost : |
From: Jeff King (peff-boost_at_[hidden])
Date: 2001-11-16 15:23:45
On Fri, 16 Nov 2001, Rainer Deyke wrote:
> public:
> template<class Derived> poly_ptr(Derived *p)
> : ptr(p), cloner(copier<Derived>::clone) {}
That is the obvious solution, of course. I thought I had some reason for
not using a templated constructor, but I can't quite recall it at the
moment.
-Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk