summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-25 19:11:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-25 19:11:46 +0200
commitb4bcc249393274dfc05dc5290af23f3e8fe76248 (patch)
tree480c08085a3fdbbd4d40fb735f487012b1c5a292
parentc5db801886b22c3963689ee325ed7114ab94730d (diff)
options/value: remove pointless conditional
std::decay doesn't have enum-specific behavior.
-rw-r--r--options/value.hpp4
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>;