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

Re: GCC 4.3 C++ question



On 09/02/2008, Tim Niemueller <tim niemueller de> wrote:
> Hi all.
>
> I'm currently investigating for our codebase how smooth the transition
> can be to GCC 4.3. There I'm running into the following problem on F9Alpha:
>
> I have a class which has a "sub-typedef" for an internal list, something
> like:
>
> class SomeClass
> {
>  public:
>    SomeClass();
>    // more stuff...
>  protected:
>    typedef struct _mylist mylist_t;
>    struct _mylist {
>      mylist_t *next;
>      void *dataM
>    };
> };

Why not:
class SomeClass
{
 public:
  SomeClass();
  // more stuff...
 protected:
  struct mylist_t {
    mylist_t *next;
    void *dataM
  };
};

-- 
Paul


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