Fix bad assertion
This commit is contained in:
parent
045a33fbd6
commit
e67e354d9b
1 changed files with 3 additions and 3 deletions
|
|
@ -216,7 +216,7 @@ namespace
|
||||||
for (; is_digit(*ptr) || *ptr == '\''; ++ptr)
|
for (; is_digit(*ptr) || *ptr == '\''; ++ptr)
|
||||||
if (*ptr != '\'')
|
if (*ptr != '\'')
|
||||||
result += *ptr;
|
result += *ptr;
|
||||||
DEBUG_ASSERT(result.back() != '\'', detail::assert_handler{});
|
DEBUG_ASSERT(result.empty() || result.back() != '\'', detail::assert_handler{});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -569,7 +569,7 @@ namespace
|
||||||
|
|
||||||
return type_safe::nullopt;
|
return type_safe::nullopt;
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
cpp_token_string cpp_token_string::tokenize(std::string str)
|
cpp_token_string cpp_token_string::tokenize(std::string str)
|
||||||
{
|
{
|
||||||
|
|
@ -605,7 +605,7 @@ namespace
|
||||||
{
|
{
|
||||||
return std::isalnum(c) || c == '_';
|
return std::isalnum(c) || c == '_';
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
std::string cpp_token_string::as_string() const
|
std::string cpp_token_string::as_string() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue