Fixed constexpr definition of Method::is_num

This commit is contained in:
Dmitriy Shishkov 2021-12-11 20:39:25 +03:00
parent f932df3253
commit e8a9846bf4
2 changed files with 1 additions and 6 deletions

View File

@ -21,11 +21,6 @@ QRCodeMethod Method::determite_method(string input)
return type;
}
constexpr bool Method::is_num(char ch)
{
return ch >= '0' && ch <= '9';
}
bool Method::is_alphabetic(char ch)
{
return find(Tables::alphabetic.cbegin(), Tables::alphabetic.cend(), ch) != Tables::alphabetic.cend();

View File

@ -22,6 +22,6 @@ class Method {
public:
static QRCodeMethod determite_method(string input);
static constexpr bool is_num(char ch);
static constexpr bool is_num(char ch) { return ch >= '0' && ch <= '9'; };
static bool is_alphabetic(char ch);
};