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;