[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GCC 4.3 C++ question



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 niemueller de>      www.niemueller.de
=================================================================
 Imagination is more important than knowledge. (Albert Einstein)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]