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: