Ananth wrote:
> Scott Meyers (and the standard) clearly instruct not to treat arrays
> polymorphically in C++.
> Because compiler has no means of finding out whether heap objects
> pointed by base class pointers are base class objects or derived class
> objects. Program will bomb when deleting array of base class pointers
> pointing to derived class objects.

I'm not sure I understand what you are getting at (and Google wasn't too 
helpful either).  Got some example code?

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to