Abraxas/ECS C++ Home  Table of Contents 

Module - 79.html

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

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

/*

79. Declare enumerations within a namespace or class.

*/

// bad, global space

enum { foo1 };

// good nmsp

namespace n79 {
  enum { foo2 };
}

// good class space

class c79{
  
  enum { foo3 };
};

Abraxas/ECS C++ Home  Table of Contents

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