Tweak Value constructor, no need for the const ref one

This commit is contained in:
Maxime Coste 2014-10-28 19:17:54 +00:00
parent 5078b9077d
commit efa276b13b

View File

@ -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)
{