From 742fdf7d20936cd71a009f96dfb94610b336bc97 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 10 Aug 2017 16:14:30 +0200 Subject: use c++14 features --- options/tie.hpp | 2 +- options/value-traits.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'options') diff --git a/options/tie.hpp b/options/tie.hpp index e8c1006f..92e98680 100644 --- a/options/tie.hpp +++ b/options/tie.hpp @@ -30,7 +30,7 @@ namespace options { template -typename std::enable_if::value>::type +std::enable_if_t::value> tie_setting(value& v, QComboBox* cb) { cb->setCurrentIndex(cb->findData(int(static_cast(v)))); diff --git a/options/value-traits.hpp b/options/value-traits.hpp index cf12649c..8a497aca 100644 --- a/options/value-traits.hpp +++ b/options/value-traits.hpp @@ -13,7 +13,7 @@ namespace detail { template struct default_value_traits { - using element_type = remove_qualifiers; + using element_type = std::decay_t; using value_type = u; static inline value_type from_value(const value_type& val, const value_type&) { return val; } -- cgit v1.2.3