const ness

This commit is contained in:
Anders Dalvander 2024-11-17 16:22:05 +01:00
parent 1df71f1e9d
commit 72b2a7382a

View File

@ -476,7 +476,7 @@ parse_int_string(UC const *p, UC const *pend, T &value, int base) {
UC const *const first = p;
bool negative = (*p == UC('-'));
bool const negative = (*p == UC('-'));
if (!std::is_signed<T>::value && negative) {
answer.ec = std::errc::invalid_argument;
answer.ptr = first;