summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-08-10 16:14:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-08-14 19:19:59 +0200
commit742fdf7d20936cd71a009f96dfb94610b336bc97 (patch)
tree600932d0866bbaf43647ee59f8826b2f35dd6fe1 /options
parent07f16d4ff648fee65cb3f7aaf313e9616179e9d0 (diff)
use c++14 features
Diffstat (limited to 'options')
-rw-r--r--options/tie.hpp2
-rw-r--r--options/value-traits.hpp2
2 files changed, 2 insertions, 2 deletions
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 t>
-typename std::enable_if<std::is_enum<t>::value>::type
+std::enable_if_t<std::is_enum<t>::value>
tie_setting(value<t>& v, QComboBox* cb)
{
cb->setCurrentIndex(cb->findData(int(static_cast<t>(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<typename t, typename u = t, typename Enable = void>
struct default_value_traits
{
- using element_type = remove_qualifiers<t>;
+ using element_type = std::decay_t<t>;
using value_type = u;
static inline value_type from_value(const value_type& val, const value_type&) { return val; }