From 3e76e61b9c7723ae78bc4d269a2a4573843578af Mon Sep 17 00:00:00 2001 From: Lv Zheng Date: Mon, 28 Mar 2016 17:01:25 +0800 Subject: [PATCH] Use namespace std for int64_t and uint64_t According to the c++11 standard, the declarations are within namespace scope of the namespace `std'. Add `std::' to avoid unnecessary requirement of implementations. --- src/json.hpp | 4 ++-- src/json.hpp.re2c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 363cb11c2..efcb192ff 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -183,8 +183,8 @@ template < template class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, - class NumberIntegerType = int64_t, - class NumberUnsignedType = uint64_t, + class NumberIntegerType = std::int64_t, + class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template class AllocatorType = std::allocator > diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index af2823e4e..612ca2037 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -183,8 +183,8 @@ template < template class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, - class NumberIntegerType = int64_t, - class NumberUnsignedType = uint64_t, + class NumberIntegerType = std::int64_t, + class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template class AllocatorType = std::allocator >