diff --git a/tinyxml2.cpp b/tinyxml2.cpp index bfd8d1f..5f3ba8b 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1932,10 +1932,12 @@ struct LongFitsIntoSizeTMinusOne { }; template <> -bool LongFitsIntoSizeTMinusOne::Fits( unsigned long /*value*/ ) -{ - return true; -} +struct LongFitsIntoSizeTMinusOne { + static bool Fits( unsigned long ) + { + return true; + } +}; XMLError XMLDocument::LoadFile( FILE* fp ) {