Tweak Value constructor, no need for the const ref one
This commit is contained in:
parent
5078b9077d
commit
efa276b13b
|
@ -16,10 +16,7 @@ struct Value
|
||||||
Value() = default;
|
Value() = default;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
Value(const T& val) : m_value{new Model<T>{val}} {}
|
Value(T&& val) : m_value{new Model<T>{std::forward<T>(val)}} {}
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
Value(T&& val) : m_value{new Model<T>{std::move(val)}} {}
|
|
||||||
|
|
||||||
Value(const Value& val)
|
Value(const Value& val)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user