summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:21:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:21:45 +0200
commitec34d6575fa03f1e137739ee1946f0ba9d3f2830 (patch)
tree7aa2ba948a8c2656145aa60f992aad8d96f33534 /options
parent40c45a336489103b1da50e07479dd2808ae304d6 (diff)
compat: use c++17-style value templates
Diffstat (limited to 'options')
-rw-r--r--options/value-traits.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp
index 8a497aca..d1a64da8 100644
--- a/options/value-traits.hpp
+++ b/options/value-traits.hpp
@@ -37,7 +37,7 @@ struct value_traits<slider_value> : default_value_traits<slider_value>
// Qt uses int a lot in slots so use it for all enums
template<typename t>
-struct value_traits<t, t, std::enable_if_t<std::is_enum<t>::value>> : public default_value_traits<int, t>
+struct value_traits<t, t, std::enable_if_t<is_enum_v<t>>> : public default_value_traits<int, t>
{
};