Default move construct/assign of rhi::Handle

This commit is contained in:
Eidolon 2025-05-14 19:13:54 -05:00
parent 7a4b17c230
commit 7910d12809

View file

@ -44,20 +44,11 @@ public:
Handle(NullHandleType) noexcept : Handle() {} Handle(NullHandleType) noexcept : Handle() {}
Handle(const Handle&) = default; Handle(const Handle&) noexcept = default;
Handle(Handle&& rhs) noexcept Handle(Handle&&) noexcept = default;
{
id_ = std::exchange(rhs.id_, 0);
generation_ = std::exchange(rhs.generation_, 0);
};
Handle& operator=(const Handle&) = default; Handle& operator=(const Handle&) noexcept = default;
Handle& operator=(Handle&& rhs) noexcept Handle& operator=(Handle&&) noexcept = default;
{
id_ = std::exchange(rhs.id_, 0);
generation_ = std::exchange(rhs.generation_, 0);
return *this;
}
// Conversions from Handles of derived type U to base type T // Conversions from Handles of derived type U to base type T