diff --git a/include/mapnik/text_symbolizer.hpp b/include/mapnik/text_symbolizer.hpp index 7387eb263..5ab358212 100644 --- a/include/mapnik/text_symbolizer.hpp +++ b/include/mapnik/text_symbolizer.hpp @@ -43,12 +43,14 @@ namespace mapnik struct MAPNIK_DECL text_symbolizer : public symbolizer_base { - text_symbolizer(expression_ptr name, std::string const& face_name, + // Note - we do not use boost::make_shared below as VC2010 is + // not able to compile make_shared used within a constructor + text_symbolizer(expression_ptr name, std::string const& face_name, float size, color const& fill, - text_placements_ptr placements = boost::make_shared() + text_placements_ptr placements = text_placements_ptr(new text_placements_dummy) ); text_symbolizer(expression_ptr name, float size, color const& fill, - text_placements_ptr placements = boost::make_shared() + text_placements_ptr placements = text_placements_ptr(new text_placements_dummy) ); text_symbolizer(text_symbolizer const& rhs); text_symbolizer& operator=(text_symbolizer const& rhs);