summaryrefslogtreecommitdiffhomepage
path: root/options/value-traits.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-28 17:26:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-28 21:27:35 +0200
commit0c27d726a900b901e8bffafe993a3d3e36bf27f3 (patch)
tree960bcda73075a62826300d7805f6db1b303ac540 /options/value-traits.hpp
parentc80dd2e156e20f028cf4631fd7874a89c3568bab (diff)
random cleanups
Diffstat (limited to 'options/value-traits.hpp')
-rw-r--r--options/value-traits.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp
index 680f138c..8a04b46d 100644
--- a/options/value-traits.hpp
+++ b/options/value-traits.hpp
@@ -16,12 +16,12 @@ struct default_value_traits
{
virtual ~default_value_traits() = default;
- using element_type = std::decay_t<t>;
+ using stored_type = std::decay_t<t>;
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); }
- static inline element_type to_storage(const value_type& val) { return static_cast<element_type>(val); }
+ static inline value_type from_storage(const stored_type& x) { return static_cast<value_type>(x); }
+ static inline stored_type to_storage(const value_type& val) { return static_cast<stored_type>(val); }
};
template<typename t, typename u = t, typename Enable = void>