Manlio Morini il y a 9 ans
Parent
commit
0f45b2422f
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  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 )
 {