Topic: typedef within class (previous post no good)
Author: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Date: Wed, 24 Aug 1994 08:06:16 GMT Raw View
savagem@software.mitel.com (Martin Savage) writes:
>Should this typedef be allowed?
>
>class x {
> typedef x y; /* it was typedef x *y in the previous post; */
>};
Yes.
>g++ version 2 will take it, but not version 2.4 and 2.5.8.
>Is it a bug in those versions?
If 2.4 and 2.5.8 don't accept that, it's a bug.
The bug is not present in 2.6.0.
--
Fergus Henderson - fjh@munta.cs.mu.oz.au