From b579f90baedaf6ff5030e5ff9e6eaf6ea2017f1c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 25 Jun 2015 19:41:53 +0100 Subject: [PATCH] Make sure we do not put a Value in a Value --- src/value.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/value.hh b/src/value.hh index 1a287b0b..3c6eb7fb 100644 --- a/src/value.hh +++ b/src/value.hh @@ -4,6 +4,7 @@ #include "unordered_map.hh" #include "units.hh" +#include #include namespace Kakoune @@ -15,7 +16,8 @@ struct Value { Value() = default; - template + template::value>::type> Value(T&& val) : m_value{new Model{std::forward(val)}} {} Value(const Value& val) = delete;