From a30ba0c1479d9ac5e968396c4a6e5661ce65d463 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 22 Mar 2021 12:13:20 +0100 Subject: [PATCH] Ensure still the right stringToNumber() overload is called for char arrays --- conversion/stringconversion.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conversion/stringconversion.h b/conversion/stringconversion.h index 2497713..e04905d 100644 --- a/conversion/stringconversion.h +++ b/conversion/stringconversion.h @@ -492,7 +492,7 @@ template CharType charToDigit(CharType character, CharType b * \throws A ConversionException will be thrown if the provided \a string is not a valid number. * \sa numberToString(), bufferToNumber() */ -template , std::is_unsigned> * = nullptr> +template , std::is_unsigned, Traits::Not>>> * = nullptr> IntegralType stringToNumber(const StringType &string, IntegralType base = 10) { IntegralType result = 0; @@ -513,7 +513,7 @@ IntegralType stringToNumber(const StringType &string, IntegralType base = 10) * \throws A ConversionException will be thrown if the provided \a string is not a valid number. * \sa numberToString(), bufferToNumber() */ -template , std::is_signed> * = nullptr> +template , std::is_signed, Traits::Not>>> * = nullptr> IntegralType stringToNumber(const StringType &string, IntegralType base = 10) { auto i = string.begin(); @@ -547,7 +547,7 @@ IntegralType stringToNumber(const StringType &string, IntegralType base = 10) * \a base and types). * \sa numberToString(), bufferToNumber() */ -template > * = nullptr> +template , Traits::Not>>> * = nullptr> FloatingType stringToNumber(const StringType &string, int base = 10) { std::basic_stringstream ss;