diff options
author | gregs <greg@10gen.com> | 2011-05-05 13:43:59 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-05-05 13:43:59 -0400 |
commit | d71d5f1b9fb55a28356ed5d18b968c6481c0cef1 (patch) | |
tree | faadc19f7cd7df4e18e65660ca1b4a99b29d36b7 /db/geo | |
parent | 2e7a28c0d7b73b5ea65c78769feb3e7a4916abc1 (diff) | |
download | mongo-d71d5f1b9fb55a28356ed5d18b968c6481c0cef1.tar.gz |
compile please
Diffstat (limited to 'db/geo')
-rw-r--r-- | db/geo/2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/geo/2d.cpp b/db/geo/2d.cpp index 258292eb93d..782cf77a005 100644 --- a/db/geo/2d.cpp +++ b/db/geo/2d.cpp @@ -1368,7 +1368,7 @@ namespace mongo { if( _foundInExp >= maxFound || _found >= maxAdded ) return; // We've searched this prefix fully, remember - _lastPrefix = _prefix; + _lastPrefix.reset( new GeoHash( _prefix )); // If we've searched the entire space, we're finished. if ( ! _prefix.constrains() ) { @@ -1550,7 +1550,7 @@ namespace mongo { // The current hash prefix we're expanding and the center-box hash prefix GeoHash _prefix; - optional<GeoHash> _lastPrefix; + shared_ptr<GeoHash> _lastPrefix; GeoHash _centerPrefix; list<string> _fringe; int recurseDepth; |