From 955aa218f267ce76a0e5f9b2daab318fe14100c6 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 20 Apr 2016 09:24:37 +0300 Subject: [PATCH] Explicitly delete any copy/move operations from the logger class. --- source/Logger.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Logger.hpp b/source/Logger.hpp index 151f6190..56fc5e06 100644 --- a/source/Logger.hpp +++ b/source/Logger.hpp @@ -34,10 +34,12 @@ protected: Logger(); // -------------------------------------------------------------------------------------------- - Logger(Logger const &); + Logger(const Logger & o) = delete; + Logger(Logger && o) = delete; // -------------------------------------------------------------------------------------------- - Logger & operator= (Logger const &); + Logger & operator= (const Logger & o) = delete; + Logger & operator= (Logger && o) = delete; public: