diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-04-03 17:09:41 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-04-03 17:09:41 +0200 |
commit | 0b3909463b93f550040914321df1d7d71fa00703 (patch) | |
tree | 5993d0136af89cab5303386b8f0ac303a2eee7d0 /src/utils | |
parent | ad8586d69bdac1a1fa19907f830518875e4acd91 (diff) | |
download | usdx-0b3909463b93f550040914321df1d7d71fa00703.tar.gz usdx-0b3909463b93f550040914321df1d7d71fa00703.tar.xz usdx-0b3909463b93f550040914321df1d7d71fa00703.zip |
Replace boost::noncopyable with c++11 delete syntax.
Diffstat (limited to '')
-rw-r--r-- | src/utils/activator.hpp | 8 | ||||
-rw-r--r-- | src/utils/disposer.hpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/utils/activator.hpp b/src/utils/activator.hpp index d11d7922..7c87d730 100644 --- a/src/utils/activator.hpp +++ b/src/utils/activator.hpp @@ -25,13 +25,11 @@ #ifndef ACTIVATOR_HPP #define ACTIVATOR_HPP -#include <boost/noncopyable.hpp> - #include "activatable.hpp" namespace usdx { - class Activator : public boost::noncopyable + class Activator { private: Activatable* activatable; @@ -39,6 +37,10 @@ namespace usdx public: Activator(Activatable* activatable); virtual ~Activator(); + + /* no copies */ + Activator(const Activator&) = delete; + Activator& operator=(const Activator&) = delete; }; } diff --git a/src/utils/disposer.hpp b/src/utils/disposer.hpp index 9f826d37..16f24aee 100644 --- a/src/utils/disposer.hpp +++ b/src/utils/disposer.hpp @@ -25,12 +25,10 @@ #ifndef DISPOSER_HPP #define DISPOSER_HPP -#include <boost/noncopyable.hpp> - namespace usdx { template<typename T> - class Disposer : public boost::noncopyable + class Disposer { private: T* disposable; @@ -51,6 +49,10 @@ namespace usdx disposable->dispose(); delete disposable; } + + /* no copies */ + Disposer(const Disposer&) = delete; + Disposer& operator=(const Disposer&) = delete; }; } |