Ver Fonte

Fixes issue #425

Manlio Morini há 9 anos atrás
pai
commit
0f45b2422f
1 ficheiros alterados com 6 adições e 4 exclusões
  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 )
 {