diff options
-rw-r--r-- | common/aloptional.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/aloptional.h b/common/aloptional.h index 6180d161..6de16799 100644 --- a/common/aloptional.h +++ b/common/aloptional.h @@ -310,10 +310,10 @@ public: template<typename U> constexpr T value_or(U&& defval) const& - { return bool{*this} ? **this : static_cast<T>(std::forward<U>(defval)); } + { return bool(*this) ? **this : static_cast<T>(std::forward<U>(defval)); } template<typename U> constexpr T value_or(U&& defval) && - { return bool{*this} ? std::move(**this) : static_cast<T>(std::forward<U>(defval)); } + { return bool(*this) ? std::move(**this) : static_cast<T>(std::forward<U>(defval)); } template<typename ...Args> constexpr T& emplace(Args&& ...args) |