From efa276b13ba775e31c0dd8ea3998f88df2aff8e1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 28 Oct 2014 19:17:54 +0000 Subject: [PATCH] Tweak Value constructor, no need for the const ref one --- src/value.hh | 5 +---- 1 file changed, 1 insertion(+), 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 - Value(const T& val) : m_value{new Model{val}} {} - - template - Value(T&& val) : m_value{new Model{std::move(val)}} {} + Value(T&& val) : m_value{new Model{std::forward(val)}} {} Value(const Value& val) {