/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2010 Danny Robson */ #ifndef __NOCOPY_HPP #define __NOCOPY_HPP namespace util { class nocopy { protected: nocopy () { ; } ~nocopy () { ; } private: nocopy (const nocopy & ) = delete; nocopy ( nocopy &&) = delete; nocopy& operator= (const nocopy & ) = delete; nocopy& operator= ( nocopy &&) = delete; }; } #endif