build: switch to C++17
Change-Id: Ie68020a04b7e20b74778b6d0370544ded55c5e26
diff --git a/daemon/fw/strategy.hpp b/daemon/fw/strategy.hpp
index 50c79dc..4e162bd 100644
--- a/daemon/fw/strategy.hpp
+++ b/daemon/fw/strategy.hpp
@@ -377,7 +377,7 @@
struct ParsedInstanceName
{
Name strategyName; ///< Strategy name without parameters
- optional<uint64_t> version; ///< The strategy version number, if present
+ std::optional<uint64_t> version; ///< The strategy version number, if present
PartialName parameters; ///< Parameter components, may be empty
};
@@ -445,7 +445,7 @@
// Note: only arithmetic types are supported by getOrDefault() for now
template<typename T>
- std::enable_if_t<std::is_signed<T>::value, T>
+ std::enable_if_t<std::is_signed_v<T>, T>
getOrDefault(const key_type& key, const T& defaultVal) const
{
auto it = find(key);
@@ -461,7 +461,7 @@
}
template<typename T>
- std::enable_if_t<std::is_unsigned<T>::value, T>
+ std::enable_if_t<std::is_unsigned_v<T>, T>
getOrDefault(const key_type& key, const T& defaultVal) const
{
auto it = find(key);