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

Module - m21.html

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

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

// Item 21: Don’t try to return a reference when you must return an object. 90

class Student  {
public:
	Student();
};



Function Name: validateStudent()

bool validateStudent( Student s ) {
	Student newstudent;
return( &newstudent );
}

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

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