Topic: Followup to Proposal for clone library function
Author: Brian Parker <bparker@gil.com.au>
Date: 1996/12/07 Raw View
I <bparker@gil.com.au> wrote:
>(Another minor advantage of the clone_ptr() template function is that it can
>be specialised for
>non-polymorphic and built-in types (with the obvious trivial
>implementations) so the same smart
>pointer code could be usable with both polymorphic and non-polymorphic types)
Actually, on reflection, this wouldn't be necessary as typeid will work
correctly on built-in and non-polymorphic types, so the smart pointer would
automatically be usable on all types.
,Brian Parker
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]