From 545b4ff3cc09fef031245c8e6aacdee618f12cf1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 20 Jun 2012 16:48:02 +1000 Subject: [PATCH] Make de/constructor protected in nocopy --- nocopy.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nocopy.hpp b/nocopy.hpp index 7d9ad6eb..4af1fdaa 100644 --- a/nocopy.hpp +++ b/nocopy.hpp @@ -24,8 +24,9 @@ namespace util { class nocopy { - public: - nocopy () { ; } + protected: + nocopy () { ; } + ~nocopy () { ; } private: nocopy (const nocopy &) = delete;