@@ -8,7 +8,7 @@ struct ShaderTypeTraits;
88template <>
99struct ShaderTypeTraits <SVS>
1010{
11- typedef CResourceManager::map_VS MapType ;
11+ using MapType = CResourceManager::map_VS;
1212
1313#ifdef USE_OGL
1414 using HWShaderType = GLuint;
@@ -65,7 +65,7 @@ struct ShaderTypeTraits<SVS>
6565template <>
6666struct ShaderTypeTraits <SPS>
6767{
68- typedef CResourceManager::map_PS MapType ;
68+ using MapType = CResourceManager::map_PS;
6969
7070#ifdef USE_OGL
7171 using HWShaderType = GLuint;
@@ -132,7 +132,7 @@ struct ShaderTypeTraits<SPS>
132132template <>
133133struct ShaderTypeTraits <SGS>
134134{
135- typedef CResourceManager::map_GS MapType ;
135+ using MapType = CResourceManager::map_GS;
136136
137137#ifdef USE_OGL
138138 using HWShaderType = GLuint;
@@ -191,7 +191,7 @@ struct ShaderTypeTraits<SGS>
191191template <>
192192struct ShaderTypeTraits <SHS>
193193{
194- typedef CResourceManager::map_HS MapType ;
194+ using MapType = CResourceManager::map_HS;
195195
196196#ifdef USE_OGL
197197 using HWShaderType = GLuint;
@@ -227,7 +227,7 @@ struct ShaderTypeTraits<SHS>
227227template <>
228228struct ShaderTypeTraits <SDS>
229229{
230- typedef CResourceManager::map_DS MapType ;
230+ using MapType = CResourceManager::map_DS;
231231
232232#ifdef USE_OGL
233233 using HWShaderType = GLuint;
@@ -263,7 +263,7 @@ struct ShaderTypeTraits<SDS>
263263template <>
264264struct ShaderTypeTraits <SCS>
265265{
266- typedef CResourceManager::map_CS MapType ;
266+ using MapType = CResourceManager::map_CS;
267267
268268#ifdef USE_OGL
269269 using HWShaderType = GLuint;
@@ -340,7 +340,7 @@ inline CResourceManager::map_CS& CResourceManager::GetShaderMap()
340340template <typename T>
341341inline T* CResourceManager::CreateShader (const char * name, const char * filename /* = nullptr*/ , const bool searchForEntryAndTarget /* = false*/ )
342342{
343- ShaderTypeTraits<T>::MapType& sh_map = GetShaderMap<ShaderTypeTraits<T>::MapType>();
343+ typename ShaderTypeTraits<T>::MapType& sh_map = GetShaderMap<typename ShaderTypeTraits<T>::MapType>();
344344 LPSTR N = LPSTR (name);
345345 auto iterator = sh_map.find (N);
346346
@@ -437,7 +437,7 @@ inline void CResourceManager::DestroyShader(const T* sh)
437437 if (0 == (sh->dwFlags & xr_resource_flagged::RF_REGISTERED))
438438 return ;
439439
440- ShaderTypeTraits<T>::MapType& sh_map = GetShaderMap<ShaderTypeTraits<T>::MapType>();
440+ typename ShaderTypeTraits<T>::MapType& sh_map = GetShaderMap<typename ShaderTypeTraits<T>::MapType>();
441441
442442 LPSTR N = LPSTR (*sh->cName );
443443 auto iterator = sh_map.find (N);
0 commit comments