Deal with tr1 being gone in c0x11 compilers

This commit is contained in:
Jean-Francois Dockes
2013-10-18 13:02:48 +02:00
parent 0ba71e0e39
commit e12d66865e
9 changed files with 353 additions and 211 deletions
+2 -3
View File
@@ -19,8 +19,7 @@
#include <math.h>
#include <map>
#include <tr1/unordered_set>
using std::tr1::unordered_set;
#include "unordered_defs.h"
using namespace std;
@@ -362,7 +361,7 @@ int Query::Native::makeAbstract(Xapian::docid docid,
map<unsigned int, string> sparseDoc;
// Also remember apart the search term positions so that we can list
// them with their snippets.
unordered_set<unsigned int> searchTermPositions;
STD_UNORDERED_SET<unsigned int> searchTermPositions;
// Remember max position. Used to stop walking positions lists while
// populating the adjacent slots.