]> granicus.if.org Git - icinga2/commitdiff
Provide a specialized function overload for Convert::ToDouble(const Value&)
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 17 Nov 2014 12:59:29 +0000 (13:59 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 17 Nov 2014 13:00:13 +0000 (14:00 +0100)
lib/base/convert.hpp

index 7a6db262858083f61c4c7a7a13558b4ee50ddfb8..2b152d488bf6af7cb86f7bafe7c35c7798ef348d 100644 (file)
@@ -59,6 +59,11 @@ public:
                }
        }
 
+       static inline double ToDouble(const Value& val)
+       {
+               return val;
+       }
+
        static bool ToBool(const String& val);
 
        template<typename T>