فهرست منبع

Merge pull request #453 from morinim/issue425

Fixes issue #425
Lee Thomason 9 سال پیش
والد
کامیت
53b0727037
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  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 )
 {