From 31530850688c7e3e49d1f4f9fd90e250503662bc Mon Sep 17 00:00:00 2001 From: Braxton Salyer Date: Sat, 16 Mar 2024 13:31:13 -0500 Subject: [PATCH] Make mpl::Value::operator bool explicit(false) --- include/hyperion/mpl/value.h | 2 +- xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hyperion/mpl/value.h b/include/hyperion/mpl/value.h index 44cac87..b319968 100644 --- a/include/hyperion/mpl/value.h +++ b/include/hyperion/mpl/value.h @@ -109,7 +109,7 @@ namespace hyperion::mpl { /// - `TType` must not be `bool` /// /// @return the `value` of this specialization of `Value`, converted to `bool` - [[nodiscard]] explicit constexpr operator bool() const noexcept + [[nodiscard]] constexpr operator bool() const noexcept requires std::convertible_to && (!std::same_as) { return value; diff --git a/xmake.lua b/xmake.lua index cf5f58d..fa4b7a4 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1,6 +1,6 @@ ---@diagnostic disable: undefined-global,undefined-field set_project("hyperion_mpl") -set_version("0.8.1") +set_version("0.8.2") set_xmakever("2.8.7")