GCC Extensions

The CodeWarrior C++ compiler recognizes some extensions to the ISO/IEC 14882-2003 C++ standard that are also recognized by the GCC (GNU Compiler Collection) C++ compiler.

The compiler allows the use of the :: operator, of the form class::member, in a class declaration.

Listing: Using the :: operator in class declarations

class MyClass {
   int MyClass::getval();

};