From 4138a70a520a22150981f50ee7824857a702cb7d Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 8 May 2013 16:51:28 +0100 Subject: [PATCH] mapnik::value to_expression_string - add missing specialization for mapnik::value_integer and remove usage of std::stringstream --- include/mapnik/value.hpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index fe67c798b..6e9e894fa 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -40,8 +40,6 @@ #include "hash_variant.hpp" // stl -#include -#include #include #include @@ -670,6 +668,13 @@ struct to_expression_string : public boost::static_visitor return "'" + utf8 + "'"; } + std::string operator() (value_integer val) const + { + std::string output; + util::to_string(output,val); + return output; + } + std::string operator() (value_double val) const { std::string output; @@ -687,14 +692,6 @@ struct to_expression_string : public boost::static_visitor boost::ignore_unused_variable_warning(val); return "null"; } - - template - std::string operator() (T val) const - { - std::stringstream ss; - ss << val; - return ss.str(); - } }; struct to_double : public boost::static_visitor