Re: GCC 4.3 C++ question

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux