
26 Apr
2005
26 Apr
'05
11:39 p.m.
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.