diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-01-31 16:26:41 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-01-31 16:26:41 +0000 |
| commit | da3fd6d1f9a24f881ef09a170f998b471d054742 (patch) | |
| tree | 48a27d8ed51d519388f42315ae50285cd19e01fe /RenderScript/include/LuaBindings.h | |
| parent | Updated HLSL2GLSLConverterApp (diff) | |
| download | DiligentTools-da3fd6d1f9a24f881ef09a170f998b471d054742.tar.gz DiligentTools-da3fd6d1f9a24f881ef09a170f998b471d054742.zip | |
Improved handling unordered_maps
Diffstat (limited to 'RenderScript/include/LuaBindings.h')
| -rw-r--r-- | RenderScript/include/LuaBindings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/RenderScript/include/LuaBindings.h b/RenderScript/include/LuaBindings.h index 67a3e8f..a93142e 100644 --- a/RenderScript/include/LuaBindings.h +++ b/RenderScript/include/LuaBindings.h @@ -120,7 +120,7 @@ namespace Diligent protected: const size_t m_MemberOffset; }; - typedef std::unordered_map<Diligent::HashMapStringKey, std::unique_ptr<MemberBinderBase> > BindingsMapType; + typedef std::unordered_map<HashMapStringKey, std::unique_ptr<MemberBinderBase>, HashMapStringKey::Hasher> BindingsMapType; #define DEFINE_BINDER_EX(BindingsMap, Struct, Member, type, ValidationFunc) \ do{\ @@ -571,7 +571,7 @@ namespace Diligent EnumMapping<VALUE_TYPE> m_ValueTypeEnumMapping; EnumMemberBinder<VALUE_TYPE> m_ValueTypeBinder; typedef void (*ParseNumericArrayFuncType)(lua_State *L, int StackIndex, std::vector< Uint8 >& RawData); - std::unordered_map< VALUE_TYPE, ParseNumericArrayFuncType > m_ParseFuncJumpTbl; + std::unordered_map< VALUE_TYPE, ParseNumericArrayFuncType, std::hash<std::underlying_type<VALUE_TYPE>::type> > m_ParseFuncJumpTbl; }; |
