blob: d899a0a92fa62384c7931521a475fb06a78f1411 [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_ADT_UNCOPYABLE_H
#define MCLD_ADT_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