Use std::bool_constant (C++17 feature)

This commit is contained in:
Mat Sutcliffe
2021-04-17 16:39:38 +01:00
parent f228055229
commit 6d232756f4
5 changed files with 8 additions and 8 deletions

View File

@@ -130,7 +130,7 @@ namespace BlackMisc
struct MetaFlags : public std::integral_constant<quint64, F>
{
//! Implicit conversion to std::false_type (if F is zero) or std::true_type (if F is non-zero).
constexpr operator std::integral_constant<bool, static_cast<bool>(F)>() const { return {}; }
constexpr operator std::bool_constant<static_cast<bool>(F)>() const { return {}; }
};
/*!