Use std::uint64_t and auto instead of long types (cpplint runtime/int), and reserve only when the request is larger than the capacity: before GCC 11, libstdc++ shrinks a string on a smaller reserve and moves the owned buffer. Signed-off-by: Niels Lohmann <mail@nlohmann.me>