summaryrefslogtreecommitdiff
path: root/src/value.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-11-17 07:02:40 +1100
committerMaxime Coste <mawww@kakoune.org>2021-11-21 09:44:57 +1100
commitbea23c6bf2d7a7f11f909f541f55d683a88a79f5 (patch)
treee6e4b8642ddcf9132238aeac1eab3b4497dbb8b7 /src/value.hh
parentab9d78f50ddba621f875cf5ceb9da3e20d0a04f5 (diff)
Use std::remove_cvref instead of std::decay
Diffstat (limited to 'src/value.hh')
-rw-r--r--src/value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.hh b/src/value.hh
index aa53afb8..982cb912 100644
--- a/src/value.hh
+++ b/src/value.hh
@@ -18,7 +18,7 @@ struct Value
template<typename T> requires (not std::is_same_v<Value, T>)
Value(T&& val)
- : m_value{new Model<std::decay_t<T>>{std::forward<T>(val)}} {}
+ : m_value{new Model<std::remove_cvref_t<T>>{std::forward<T>(val)}} {}
Value(const Value& val) = delete;
Value(Value&&) = default;