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
+4 -4
View File
@@ -31,9 +31,9 @@
#include <map>
#include <string>
#include <algorithm>
#include <tr1/unordered_map>
#include "unordered_defs.h"
using std::string;
using std::tr1::unordered_map;
#include "smallut.h"
/*
@@ -42,10 +42,10 @@ using std::tr1::unordered_map;
instead according to some local rule. There will usually be very
few of them, but they must be looked up for every translated char.
*/
unordered_map<unsigned short, string> except_trans;
STD_UNORDERED_MAP<unsigned short, string> except_trans;
static inline bool is_except_char(unsigned short c, string& trans)
{
unordered_map<unsigned short, string>::const_iterator it
STD_UNORDERED_MAP<unsigned short, string>::const_iterator it
= except_trans.find(c);
if (it == except_trans.end())
return false;