
27 Apr
2005
27 Apr
'05
12:28 p.m.
"Thorsten Ottosen" <nesotto@cs.auc.dk> writes:
A "value object" implies something that behaves as an int; a "polymophic object" implies something that needs to allocated dynamically and which has virtual functions.
A polymorphic object doesn't need to be allocated dynamically.
trying to make a polymorphic object behave like a value object is confusing a best.
Who does it confuse? Pimpl is a commonly used and well understood pattern for doing just that. -- Dave Abrahams Boost Consulting www.boost-consulting.com