nl_isdigit can be made constexpr

This commit is contained in:
Jett 2016-10-20 23:18:43 -05:00
parent 7dcc8a56bb
commit 7cc60ccc0a
2 changed files with 2 additions and 2 deletions

View File

@ -8802,7 +8802,7 @@ basic_json_parser_63:
// non locale aware isdigit
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::isdigit
bool nl_isdigit(const char c) const
constexpr bool nl_isdigit(const char c) const
{
return c >= '0' and c <= '9';
}

View File

@ -8099,7 +8099,7 @@ class basic_json
// non locale aware isdigit
// Microsoft in 1252 codepage and others may classify additional single-byte characters as digits using std::isdigit
bool nl_isdigit(const char c) const
constexpr bool nl_isdigit(const char c) const
{
return c >= '0' and c <= '9';
}