From 666ff418dcb20d5f441cafe0b32b2ffddf3f7549 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 24 Mar 2010 18:01:45 +0000 Subject: [PATCH] + add specialization for bool in to_expression_string() --- include/mapnik/value.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index fdf9d826f..5ef7105aa 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -611,6 +611,11 @@ struct to_expression_string : public boost::static_visitor return ss.str(); } + std::string operator() (bool val) const + { + return val ? "true":"false"; + } + std::string operator() (value_null const& val) const { boost::ignore_unused_variable_warning(val);