Fixes old g++ build error with default template arguments, by wrapping them in parentheses.

This was SVN commit r10990.
This commit is contained in:
historic_bruno
2012-01-30 04:57:39 +00:00
parent cc5a0fba4e
commit 2d0e8021aa
+2 -2
View File
@@ -47,7 +47,7 @@ public:
* @param defines key/value set of preprocessor definitions
* @return loaded program, or null pointer on error
*/
CShaderProgramPtr LoadProgram(const char* name, const std::map<CStr, CStr>& defines = std::map<CStr, CStr>());
CShaderProgramPtr LoadProgram(const char* name, const std::map<CStr, CStr>& defines = (std::map<CStr, CStr>()));
/**
* Load a shader effect.
@@ -56,7 +56,7 @@ public:
* @param defines key/value set of preprocessor definitions
* @return loaded technique, or empty technique on error
*/
CShaderTechnique LoadEffect(const char* name, const std::map<CStr, CStr>& defines = std::map<CStr, CStr>());
CShaderTechnique LoadEffect(const char* name, const std::map<CStr, CStr>& defines = (std::map<CStr, CStr>()));
private:
bool NewProgram(const char* name, const std::map<CStr, CStr>& defines, CShaderProgramPtr& program);