From 77b746841aa081f593e161a4871c829e3e6ef983 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 17 Nov 2014 13:59:29 +0100 Subject: [PATCH] Provide a specialized function overload for Convert::ToDouble(const Value&) --- lib/base/convert.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/base/convert.hpp b/lib/base/convert.hpp index 7a6db2628..2b152d488 100644 --- a/lib/base/convert.hpp +++ b/lib/base/convert.hpp @@ -59,6 +59,11 @@ public: } } + static inline double ToDouble(const Value& val) + { + return val; + } + static bool ToBool(const String& val); template