The sample code from the effective C++