From 9959006e6158d809123431355cf265136f6b4ff0 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 23 Jul 2014 10:54:02 -0700 Subject: [PATCH] remove boost::lexical_cast --- include/mapnik/attribute_collector.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/mapnik/attribute_collector.hpp b/include/mapnik/attribute_collector.hpp index 4cb42e8ec..16d397ca4 100644 --- a/include/mapnik/attribute_collector.hpp +++ b/include/mapnik/attribute_collector.hpp @@ -28,9 +28,7 @@ #include #include #include -#include // for rule::symbolizers #include // for expression_ptr, etc -#include #include #include // for path_processor_type #include // for path_expression_ptr @@ -38,12 +36,12 @@ #include #include #include +#include // boost #include #include -#include -#include +#include // stl #include @@ -286,9 +284,13 @@ inline void group_attribute_collector::operator() (group_symbolizer const& sym) // Indexed column name. add column name for each index value. for (int col_idx = start; col_idx < end; ++col_idx) { - std::string col_idx_name = col_name; - boost::replace_all(col_idx_name, "%", boost::lexical_cast(col_idx)); - names_.insert(col_idx_name); + std::string col_idx_str; + if (mapnik::util::to_string(col_idx_str,col_idx)) + { + std::string col_idx_name = col_name; + boost::replace_all(col_idx_name, "%", col_idx_str); + names_.insert(col_idx_name); + } } } }