mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Use std::bool_constant (C++17 feature)
This commit is contained in:
@@ -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 {}; }
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user