Package Index  Table of Contents

CodeCheck ECS C/C++ to Test Suite - 102.cpp

/*
102.   Declare a private operator new() to prohibit dynamic allocation.
*/
class myclass1 {
public:
// bad 102
 void * operator new(int);
};
class myclass2 {
public:
  
private:
//good 102    
 void * operator new(int);
};

Package Index  Table of Contents

CodeCheck Copyright (c) 1988-2005 by Abraxas Software Inc. (R). All rights reserved.