Config fix
This commit is contained in:
@@ -103,7 +103,13 @@ bool cfg::try_to_enum_value(u64* out, decltype(&fmt_class_string<int>::format) f
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto val = std::stoull(value, nullptr, 0);
|
std::size_t pos;
|
||||||
|
const auto val = std::stoull(value, &pos, 0);
|
||||||
|
|
||||||
|
if (pos != value.size())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (out) *out = val;
|
if (out) *out = val;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user