GCC 4.3 C++ question
Tim Niemueller
tim at niemueller.de
Sat Feb 9 23:23:24 UTC 2008
Paul Black wrote:
> Why not:
> class SomeClass
> {
> public:
> SomeClass();
> // more stuff...
> protected:
> struct mylist_t {
> mylist_t *next;
> void *dataM
> };
> };
Then I cannot use
SomeClass::mylist_t *list
but I would have to use
struct SomeClass::mylist_t *list
which is ugly and this is why I had the typedef in the first place.
I just wonder if this is indeed the intended behavior, typedef are not
allowed as members, or if this is just a bug. If its the former I'd like
to now what the rationale is behind this...
Any more ideas?
Tim
--
Tim Niemueller <tim at niemueller.de> www.niemueller.de
=================================================================
Imagination is more important than knowledge. (Albert Einstein)
More information about the fedora-devel-list
mailing list