mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-01 01:13:32 +00:00
Fix warnings.
This commit is contained in:
parent
be69339bc8
commit
fbed12ac58
20
format.h
20
format.h
@ -861,6 +861,16 @@ class BasicFormatter {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
Arg(T *value);
|
Arg(T *value);
|
||||||
|
|
||||||
|
struct StringValue {
|
||||||
|
const Char *value;
|
||||||
|
std::size_t size;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct CustomValue {
|
||||||
|
const void *value;
|
||||||
|
FormatFunc format;
|
||||||
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Type type;
|
Type type;
|
||||||
union {
|
union {
|
||||||
@ -873,14 +883,8 @@ class BasicFormatter {
|
|||||||
unsigned long long ulong_long_value;
|
unsigned long long ulong_long_value;
|
||||||
long double long_double_value;
|
long double long_double_value;
|
||||||
const void *pointer_value;
|
const void *pointer_value;
|
||||||
struct {
|
StringValue string;
|
||||||
const Char *value;
|
CustomValue custom;
|
||||||
std::size_t size;
|
|
||||||
} string;
|
|
||||||
struct {
|
|
||||||
const void *value;
|
|
||||||
FormatFunc format;
|
|
||||||
} custom;
|
|
||||||
};
|
};
|
||||||
mutable BasicFormatter *formatter;
|
mutable BasicFormatter *formatter;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user