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 {