Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index 113ffc49ca5837a5273ef1b26246ab3d093ac296..5dd8b6306ec89c6a8eaa1c62c5785b7363020556 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -13,6 +13,7 @@ |
//===----------------------------------------------------------------------===// |
#include <ctype.h> // isdigit(), isupper() |
+#include <locale> // locale |
#include "IceDefs.h" |
#include "IceTypes.h" |
@@ -61,7 +62,7 @@ public: |
private: |
typedef std::pair<Type, KeyType> TupleType; |
struct TupleCompare { |
- bool operator()(const TupleType &A, const TupleType &B) { |
+ bool operator()(const TupleType &A, const TupleType &B) const { |
if (A.first != B.first) |
return A.first < B.first; |
if (KeyTypeHasFP) |