mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-25 12:02:32 +00:00
Fix compilation with clang.
This commit is contained in:
parent
d5c82bc717
commit
24fcd6e97f
3
format.h
3
format.h
@ -409,7 +409,7 @@ class StrFormatSpec : public AlignSpec {
|
|||||||
const T *str_;
|
const T *str_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StrFormatSpec(const T *str, const AlignSpec &spec = AlignSpec())
|
StrFormatSpec(const T *str, const AlignSpec &spec)
|
||||||
: AlignSpec(spec), str_(str) {}
|
: AlignSpec(spec), str_(str) {}
|
||||||
|
|
||||||
const T *str() const { return str_; }
|
const T *str() const { return str_; }
|
||||||
@ -1076,6 +1076,7 @@ class BasicFormatter {
|
|||||||
BasicFormatter(BasicWriter<Char> &w,
|
BasicFormatter(BasicWriter<Char> &w,
|
||||||
const Char *format, std::initializer_list<Arg> args)
|
const Char *format, std::initializer_list<Arg> args)
|
||||||
: writer_(&w), format_(format) {
|
: writer_(&w), format_(format) {
|
||||||
|
// TODO: don't copy arguments
|
||||||
args_.reserve(args.size());
|
args_.reserve(args.size());
|
||||||
for (const Arg &arg: args)
|
for (const Arg &arg: args)
|
||||||
args_.push_back(&arg);
|
args_.push_back(&arg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user