From cdbd81523a48eed0eb716d2e345848637baafb06 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 6 Mar 2016 01:35:32 +0000 Subject: [PATCH] Fix Value constructor, we never want to create reference values --- src/value.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/value.hh b/src/value.hh index 3c6eb7fb..eddd956e 100644 --- a/src/value.hh +++ b/src/value.hh @@ -18,7 +18,8 @@ struct Value template::value>::type> - Value(T&& val) : m_value{new Model{std::forward(val)}} {} + Value(T&& val) + : m_value{new Model::type>{std::forward(val)}} {} Value(const Value& val) = delete; Value(Value&&) = default;