/*---------------------------------------------------------------------------* Copyright (C) 2013-2014 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef NN_EC_NON_COPYABLE_H_ #define NN_EC_NON_COPYABLE_H_ namespace nn { namespace ec { //! @addtogroup nn_ec_class //! @{ /*! @brief Represents a non-copyable object. Objects of classes that inherit this class cannot use the copy constructor or be assigned. */ template class NonCopyable { protected: NonCopyable() {} ~NonCopyable() {} private: NonCopyable(const NonCopyable&); NonCopyable& operator=(const NonCopyable&); T& operator=(const T&); }; //! @} }} // namespace nn::ec #endif // NN_EC_NON_COPYABLE_H_