Browse Source

Fixes issue #425

Manlio Morini 9 năm trước cách đây
mục cha
commit
0f45b2422f
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  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 )
 {