No default template parameter for older compilers
This commit is contained in:
parent
19b55c9049
commit
a3d52c75b7
@ -222,7 +222,7 @@ public:
|
|||||||
bool IsZero() const { return count_ == 1 && digits_[0] == 0; }
|
bool IsZero() const { return count_ == 1 && digits_[0] == 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template<typename Ch = char>
|
template<typename Ch>
|
||||||
void AppendDecimal64(const Ch* begin, const Ch* end) {
|
void AppendDecimal64(const Ch* begin, const Ch* end) {
|
||||||
uint64_t u = ParseUint64(begin, end);
|
uint64_t u = ParseUint64(begin, end);
|
||||||
if (IsZero())
|
if (IsZero())
|
||||||
@ -238,7 +238,7 @@ private:
|
|||||||
digits_[count_++] = digit;
|
digits_[count_++] = digit;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Ch = char>
|
template<typename Ch>
|
||||||
static uint64_t ParseUint64(const Ch* begin, const Ch* end) {
|
static uint64_t ParseUint64(const Ch* begin, const Ch* end) {
|
||||||
uint64_t r = 0;
|
uint64_t r = 0;
|
||||||
for (const Ch* p = begin; p != end; ++p) {
|
for (const Ch* p = begin; p != end; ++p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user