diff options
Diffstat (limited to 'src/mongo/db/geo/geometry_container.h')
-rw-r--r-- | src/mongo/db/geo/geometry_container.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mongo/db/geo/geometry_container.h b/src/mongo/db/geo/geometry_container.h index 501b17ce687..415f603d178 100644 --- a/src/mongo/db/geo/geometry_container.h +++ b/src/mongo/db/geo/geometry_container.h @@ -28,6 +28,7 @@ #pragma once +#include <boost/scoped_ptr.hpp> #include <string> #include "mongo/base/disallow_copying.h" @@ -142,20 +143,20 @@ namespace mongo { // Only one of these shared_ptrs should be non-NULL. S2Region is a // superclass but it only supports testing against S2Cells. We need // the most specific class we can get. - scoped_ptr<PointWithCRS> _point; - scoped_ptr<LineWithCRS> _line; - scoped_ptr<BoxWithCRS> _box; - scoped_ptr<PolygonWithCRS> _polygon; - scoped_ptr<CapWithCRS> _cap; - scoped_ptr<MultiPointWithCRS> _multiPoint; - scoped_ptr<MultiLineWithCRS> _multiLine; - scoped_ptr<MultiPolygonWithCRS> _multiPolygon; - scoped_ptr<GeometryCollection> _geometryCollection; + boost::scoped_ptr<PointWithCRS> _point; + boost::scoped_ptr<LineWithCRS> _line; + boost::scoped_ptr<BoxWithCRS> _box; + boost::scoped_ptr<PolygonWithCRS> _polygon; + boost::scoped_ptr<CapWithCRS> _cap; + boost::scoped_ptr<MultiPointWithCRS> _multiPoint; + boost::scoped_ptr<MultiLineWithCRS> _multiLine; + boost::scoped_ptr<MultiPolygonWithCRS> _multiPolygon; + boost::scoped_ptr<GeometryCollection> _geometryCollection; // Cached for use during covering calculations // TODO: _s2Region is currently generated immediately - don't necessarily need to do this - scoped_ptr<S2RegionUnion> _s2Region; - scoped_ptr<R2Region> _r2Region; + boost::scoped_ptr<S2RegionUnion> _s2Region; + boost::scoped_ptr<R2Region> _r2Region; }; } // namespace mongo |