From 0f2e11e735c0f5517d4228959628877b7124b5a8 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 9 Oct 2018 23:03:07 +0200 Subject: [PATCH] [DEV] build with etk memory log --- ememory/RefCounter.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ememory/RefCounter.hpp b/ememory/RefCounter.hpp index 447b00c..593d43c 100644 --- a/ememory/RefCounter.hpp +++ b/ememory/RefCounter.hpp @@ -14,7 +14,11 @@ namespace ememory { * @brief Use the element as a refcounted element */ class RefCounter { - protected: + #ifndef ETK_MEMORY_CHECKER + protected: + #else + public: + #endif // Virtualize destructor in private to prevent user ot remove it without permition virtual ~RefCounter(); private: