Abraxas/ECS C++ Home  Table of Contents 

Module - 76.html

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++.

ECS C++-C Test Suite for Module - 76.cpp

/*

76. Use typedefs to simplify complicated type expressions.

*/
template  class vector {};
class bad {
  public:
    
        const vector &  log;    // bad 
    
  };
  private:
    log log_;



Function Name: bad()

  bad() {
    const vector &  log;    // bad 
};
class good {
  public:
    typedef vector logtype;
      logtype &  log;            // good
  };
  private:
    log log_;



Function Name: good()

  good() {
  
    logtype &  log;            // good
};

Abraxas/ECS C++ Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++