another compiler bug?

Aarti_pl aarti at interia.pl
Wed Jan 9 05:43:34 PST 2008


How to create pointer to class?

Below doesn't compile:
----
A* cp = new A*;
----
Type of new A* is (A**) while it should be A*.

Any comments? (Maybe I missed something...)

PS. I know that it is possible to create pointer to class in two steps.

BR
Marcin Kuszczak
(aarti_pl)


More information about the Digitalmars-d-learn mailing list