BP> Another related question: CObject has no default callable ctors:
BP> CObject * foo = new CObject;
BP> will not compile as the only ctor is protected.
BP> Then the question: is it legal to create an array as I did above? Th
No. Each element of a dynamically allocated array is initialized using
the default constructor; if the default constructor isn't accessible,
you're not allowed to dynamically allocate an array.
BP> compiles without even a warning and that protected ctor is simply ca
Look for a better compiler.
Thomas
---
þ MM 1.0 #0113 þ This meszage has bin spel chequed.
---------------
* Origin: McMeier & Son BBS (2:301/138)
|