Ver Fonte

RPI - quick fix by relaxing the 'template' keyword check.
The check could be tighten again based on user report.

Yao Wei Tjong 姚伟忠 há 5 anos atrás
pai
commit
c6ea0d61ca
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      Source/ThirdParty/AngelScript/include/wrap16.h

+ 1 - 3
Source/ThirdParty/AngelScript/include/wrap16.h

@@ -2902,9 +2902,7 @@ Id<T> id(T fn_ptr) { return Id<T>(); }
 // On some versions of GNUC it is necessary to use the template keyword as disambiguator,
 // on others the template keyword gives an error, hence the need for the following define.
 // MSVC on the other hand seems to accept both with or without the template keyword.
-#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || (__GNUC__ == 5))
-	// GNUC 4.4.3 doesn't need the template keyword, and
-	// hopefully upcoming versions won't need it either
+#if defined(__GNUC__)
 	#define TMPL template
 #else
 	#define TMPL