From 41a8a7d9215290afeee7fda9719c75d675244316 Mon Sep 17 00:00:00 2001 From: skypjack Date: Fri, 20 Feb 2026 10:31:54 +0100 Subject: [PATCH] test: cleanup --- test/common/pointer_stable.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/common/pointer_stable.h b/test/common/pointer_stable.h index 9b2c64ce8..625e9cf50 100644 --- a/test/common/pointer_stable.h +++ b/test/common/pointer_stable.h @@ -7,15 +7,9 @@ namespace test { struct pointer_stable { static constexpr auto in_place_delete = true; + [[nodiscard]] constexpr bool operator==(const pointer_stable &other) const noexcept = default; + [[nodiscard]] constexpr auto operator<=>(const pointer_stable &other) const noexcept = default; int value{}; - - [[nodiscard]] constexpr bool operator==(const pointer_stable &other) const noexcept { - return value == other.value; - } - - [[nodiscard]] constexpr auto operator<=>(const pointer_stable &other) const noexcept { - return value <=> other.value; - } }; } // namespace test