From 0f45b2422fa862cee41e56dc7d0164e2fc98e60b Mon Sep 17 00:00:00 2001 From: Manlio Morini Date: Mon, 11 Jul 2016 12:14:59 +0200 Subject: [PATCH] Fixes issue #425 --- tinyxml2.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ) {