blob: 7ddfbe3f1dbce2e3939e210f7476a4a6ba0252dc [file] [log] [blame]
//===- Uncopyable.h -------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_UNCOPYABLE_H
#define MCLD_UNCOPYABLE_H
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
namespace mcld
{
/** \class Uncopyable
* \brief Uncopyable provides the base class to forbit copy operations.
*
*/
class Uncopyable
{
protected:
Uncopyable() { }
~Uncopyable() { }
private:
Uncopyable(const Uncopyable&); /// NOT TO IMPLEMENT
Uncopyable& operator=(const Uncopyable&); /// NOT TO IMPLEMENT
};
} // namespace of mcld
#endif