diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-25 19:11:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-25 19:11:46 +0200 |
commit | b4bcc249393274dfc05dc5290af23f3e8fe76248 (patch) | |
tree | 480c08085a3fdbbd4d40fb735f487012b1c5a292 /options | |
parent | c5db801886b22c3963689ee325ed7114ab94730d (diff) |
options/value: remove pointless conditional
std::decay doesn't have enum-specific behavior.
Diffstat (limited to 'options')
-rw-r--r-- | options/value.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/options/value.hpp b/options/value.hpp index a1ef5734..ea180b27 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -38,9 +38,7 @@ namespace options { template<typename u> class value final : public value_ { - using t = std::conditional_t<std::is_enum_v<remove_cvref_t<u>>, - std::decay_t<u>, - remove_cvref_t<u>>; + using t = remove_cvref_t<u>; const t def; using traits = detail::value_traits<t>; |