diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-28 19:17:54 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-28 19:17:54 +0000 |
| commit | efa276b13ba775e31c0dd8ea3998f88df2aff8e1 (patch) | |
| tree | c3962ad1c6b19ef219218997382f9f7dd09da1ea /src | |
| parent | 5078b9077df0dd44040a30d5b1effdbbe9443eec (diff) | |
Tweak Value constructor, no need for the const ref one
Diffstat (limited to 'src')
| -rw-r--r-- | src/value.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/value.hh b/src/value.hh index 9122255a..5b010872 100644 --- a/src/value.hh +++ b/src/value.hh @@ -16,10 +16,7 @@ struct Value Value() = default; template<typename T> - Value(const T& val) : m_value{new Model<T>{val}} {} - - template<typename T> - Value(T&& val) : m_value{new Model<T>{std::move(val)}} {} + Value(T&& val) : m_value{new Model<T>{std::forward<T>(val)}} {} Value(const Value& val) { |
