From e1de25318de6875492ac98a722c4d7ecdd1bd143 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 21 Nov 2011 20:28:47 -0800 Subject: [PATCH] allow compile with msvs - make_shared is preferable but vs compiler cannot handle it --- include/mapnik/text_symbolizer.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);