update feature factory to work with new features

This commit is contained in:
Artem Pavlenko 2012-01-12 09:32:21 +00:00 committed by Artem Pavlenko
parent f4d3a536f2
commit d65186106f

View file

@ -34,11 +34,11 @@ namespace mapnik
{
struct feature_factory
{
static boost::shared_ptr<Feature> create (int fid)
static boost::shared_ptr<Feature> create (context_ptr const& ctx, int fid)
{
//return boost::allocate_shared<Feature>(boost::pool_allocator<Feature>(),fid);
//return boost::allocate_shared<Feature>(boost::fast_pool_allocator<Feature>(),fid);
return boost::make_shared<Feature>(fid);
return boost::make_shared<Feature>(ctx,fid);
}
};
}