TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BALOG PAL
from: THOMAS MAEDER
date: 1997-06-29 14:18:00
subject: Visual C++ 4.0 or MFC bug

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.