Fix g++ build break (portibility problems with stl hash). This partly turns off the stl improvements.

It also removes some old code that ancient compilers used to need.
However, the main issue is getting access to hash functions for
unordered_map in portable way.
This commit is contained in:
John Kessenich 2015-07-20 02:06:22 -06:00
parent 6ab3d582d6
commit 68965c0fa9
4 changed files with 12 additions and 25 deletions

View file

@ -108,7 +108,8 @@ public:
protected:
friend class glslang::TLiveTraverser;
typedef std::unordered_map<TString, int> TNameToIndex;
// Need a TString hash: typedef std::unordered_map<TString, int> TNameToIndex;
typedef std::map<TString, int> TNameToIndex;
typedef std::vector<TObjectReflection> TMapIndexToReflection;
TObjectReflection badReflection; // return for queries of -1 or generally out of range; has expected descriptions with in it for this