Re: Avoid including header file by declaring class. But what fortypedef ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nguillot

    #1

    Re: Avoid including header file by declaring class. But what fortypedef ???

    Yes, by redeclaring the tB typedef in A.h:
    >
        // A.h
    >
        class B;
    >
        typedef B tB;
    >
    Greg
    I really would prefer not to duplicate the typedef, for code
    maintenance.
Working...