diff --git a/cruft/util/registrar.hpp b/cruft/util/registrar.hpp index 1b11b0db..e92c4d29 100644 --- a/cruft/util/registrar.hpp +++ b/cruft/util/registrar.hpp @@ -19,6 +19,10 @@ namespace cruft { class registry { public: struct cookie { + private: + KeyT m_key; + + public: explicit cookie (KeyT const &_key) : m_key (_key) { ; } @@ -28,7 +32,7 @@ namespace cruft { { ; } cookie (cookie &&rhs) noexcept - : m_key (std::move (rhs.key)) + : m_key (std::move (rhs.m_key)) { ; } cookie& operator= (cookie &&rhs) noexcept @@ -48,9 +52,6 @@ namespace cruft { LOG_ERROR ("Unable to remove registration for {}", m_key); } } - - private: - KeyT m_key; };