Abraxas/Meyers: Effective C++  Home  Table of Contents

Module - m06.html

ABRAXAS SOFTWARE - CodeCheck Meyers: Effective C++ Test-Suite

Meyers: Effective C++ Test Suite for Module - m06.cpp

// Item 6: Explicitly disallow the use of compiler-generated functions you do not want. 37

class Home {};
class Portland {} ;



Function Name: m6()

m6() {
	Home h1;
	Home h2;
	Home h3(h1);	// rule 6
	
	Portland p1;
	Home h4(p1);		// ok
	h1 = h2;		// rule 6
}

Abraxas/Meyers: Effective C++  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck Meyers: Effective C++ Test-Suite