From 379837bbc73bf0c76f8dfcf5443f427f65a8f445 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 6 Aug 2024 14:48:56 +1000 Subject: [PATCH] registrar: use the correct member name during move construction This fixes a build error under clang-19 --- cruft/util/registrar.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; };