diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-27 13:49:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-27 16:43:01 +0200 |
commit | cbbeca96c1b660939e9c19159f1e4525a09e1784 (patch) | |
tree | 10e50ce8923d51fe11ea4c3e8fd8243fc4359727 /options/value-traits.hpp | |
parent | 3f45ddac8ea5959a750f2ab24fd60ceaf960aebc (diff) |
options/value: template fix
Diffstat (limited to 'options/value-traits.hpp')
-rw-r--r-- | options/value-traits.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp index d1a64da8..3548c77a 100644 --- a/options/value-traits.hpp +++ b/options/value-traits.hpp @@ -14,7 +14,7 @@ template<typename t, typename u = t, typename Enable = void> struct default_value_traits { using element_type = std::decay_t<t>; - using value_type = u; + using value_type = std::decay_t<u>; static inline value_type from_value(const value_type& val, const value_type&) { return val; } static inline value_type from_storage(const element_type& x) { return static_cast<value_type>(x); } |