Fixed constexpr definition of Method::is_num
This commit is contained in:
parent
f932df3253
commit
e8a9846bf4
@ -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();
|
||||
|
@ -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);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user