From d6b57d0937558f0649f74a915acf5fd503b683e8 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Wed, 3 May 2017 19:11:30 +0200 Subject: [PATCH] Fix MSVC warning: redefinition of default template parameter The default values for template parameters don't have to be repeated in the .cxx file, apparently. --- simgear/misc/strutils.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/simgear/misc/strutils.cxx b/simgear/misc/strutils.cxx index 6c9feb80..1f854ef6 100644 --- a/simgear/misc/strutils.cxx +++ b/simgear/misc/strutils.cxx @@ -409,10 +409,7 @@ namespace simgear { std::string numerationBaseAdjective<16>() { return std::string("hexadecimal"); } - template< - class T, - int BASE = 10, - typename = typename std::enable_if::value, T>::type > + template T readNonNegativeInt(const std::string& s) { static_assert(0 < BASE,