Commit 840073d9 authored by Dominik Charousset's avatar Dominik Charousset

Fix duplicate symbol error

parent 0ef1ee0e
...@@ -27,22 +27,22 @@ template <int Base> ...@@ -27,22 +27,22 @@ template <int Base>
bool is_digit(char c); bool is_digit(char c);
template <> template <>
bool is_digit<2>(char c) { inline bool is_digit<2>(char c) {
return c == '0' || c == '1'; return c == '0' || c == '1';
} }
template <> template <>
bool is_digit<8>(char c) { inline bool is_digit<8>(char c) {
return c >= '0' && c <= '7'; return c >= '0' && c <= '7';
} }
template <> template <>
bool is_digit<10>(char c) { inline bool is_digit<10>(char c) {
return c >= '0' && c <= '9'; return c >= '0' && c <= '9';
} }
template <> template <>
bool is_digit<16>(char c) { inline bool is_digit<16>(char c) {
return (c >= '0' && c <= '9') return (c >= '0' && c <= '9')
|| (c >= 'A' && c <= 'F') || (c >= 'A' && c <= 'F')
|| (c >= 'a' && c <= 'f'); || (c >= 'a' && c <= 'f');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment