From 11dfe815cbd9a405a37796c38398938c47519b61 Mon Sep 17 00:00:00 2001 From: masaka Date: Sat, 4 Jan 2025 14:28:26 +0900 Subject: [PATCH] =?UTF-8?q?YesNo=E3=81=ABoperator=3D=3D=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Siv3D/include/Siv3D/YesNo.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Siv3D/include/Siv3D/YesNo.hpp b/Siv3D/include/Siv3D/YesNo.hpp index e6a4fc9a1..1fb2965e4 100644 --- a/Siv3D/include/Siv3D/YesNo.hpp +++ b/Siv3D/include/Siv3D/YesNo.hpp @@ -44,6 +44,18 @@ namespace s3d return m_yesNo; } + [[nodiscard]] + constexpr bool operator ==(const YesNo& other) const noexcept + { + return m_yesNo == other.m_yesNo; + } + + [[nodiscard]] + constexpr bool operator ==(const Helper& other) const noexcept + { + return m_yesNo == other.yesNo; + } + [[nodiscard]] constexpr bool getBool() const noexcept {