/*************************************************************************** * * Copyright (c) 2011 **.com, Inc. All Rights Reserved * **************************************************************************/ /** * @file def.h * @author ** * @date 2011/06/16 12:38:11 * @brief * **/ #ifndef __FINAL_CLASS_H_ #define __FINAL_CLASS_H_ template <typename T> class make_final { friend T; private: make_final() {} ~make_final() {} } class sample_final_cls : virtual public make_final<sample_final_cls> { public: sample_final_cls() {} ~sample_final_cls() {} } #endif //__FINAL_CLASS_H_