5f6b223237
Ideally we'd just do this when we need it, but the ostream derivation will be controlled by both global config and per-structure config, so it's hard to know exactly when we need it and when we don't.
14 lines
393 B
C++
14 lines
393 B
C++
#include <cstdarg>
|
|
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <ostream>
|
|
#include <new>
|
|
|
|
static const int64_t SIGNED_DOESNT_NEED_ULL_SUFFIX = -9223372036854775807;
|
|
|
|
static const int64_t SIGNED_NEEDS_ULL_SUFFIX = -9223372036854775808ULL;
|
|
|
|
static const uint64_t UNSIGNED_DOESNT_NEED_ULL_SUFFIX = 8070450532247928832;
|
|
|
|
static const uint64_t UNSIGNED_NEEDS_ULL_SUFFIX = 9223372036854775808ULL;
|