Przeglądaj źródła

Merge pull request #453 from morinim/issue425

Fixes issue #425
Lee Thomason 9 lat temu
rodzic
commit
53b0727037
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      tinyxml2.cpp

+ 6 - 4
tinyxml2.cpp

@@ -1932,10 +1932,12 @@ struct LongFitsIntoSizeTMinusOne {
 };
 
 template <>
-bool LongFitsIntoSizeTMinusOne<false>::Fits( unsigned long /*value*/ )
-{
-    return true;
-}
+struct LongFitsIntoSizeTMinusOne<false> {
+    static bool Fits( unsigned long )
+    {
+        return true;
+    }
+};
 
 XMLError XMLDocument::LoadFile( FILE* fp )
 {