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 1. Using the :: operator in class declarations
class MyClass {
   int MyClass::getval();
};
Related information
C++ Compiler Performance
Extensions to Standard C++
Implementation-Defined Behavior