Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-26 18:39:31


Thorsten Ottosen wrote:
> because you had to put "polymorphic" in front of "value" to describe
> what it means;
> polymorphic objects don't have value-based copy-semantics; you can't
> provide meaningful copy-constructor
> and copy-assignment operators.

A cloning pointer holding a polymorphic object is CopyConstructible and
Assignable. Why is this not meaningful?

A vector of cloning pointers is also CopyConstructible and Assignable.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk