registrar: use the correct member name during move construction

This fixes a build error under clang-19
This commit is contained in:
Danny Robson 2024-08-06 14:48:56 +10:00
parent 4ffe636c30
commit 379837bbc7

View File

@ -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;
};