allow compile with msvs - make_shared is preferable but vs compiler cannot handle it

This commit is contained in:
Dane Springmeyer 2011-11-21 20:28:47 -08:00
parent 9758e256f6
commit fc005aa050

View file

@ -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_dummy>()
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_dummy>()
text_placements_ptr placements = text_placements_ptr(new text_placements_dummy)
);
text_symbolizer(text_symbolizer const& rhs);
text_symbolizer& operator=(text_symbolizer const& rhs);