diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-11-17 07:02:40 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-11-21 09:44:57 +1100 |
| commit | bea23c6bf2d7a7f11f909f541f55d683a88a79f5 (patch) | |
| tree | e6e4b8642ddcf9132238aeac1eab3b4497dbb8b7 /src/value.hh | |
| parent | ab9d78f50ddba621f875cf5ceb9da3e20d0a04f5 (diff) | |
Use std::remove_cvref instead of std::decay
Diffstat (limited to 'src/value.hh')
| -rw-r--r-- | src/value.hh | 2 |
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; |
