Commit 24fcd6e9 authored by Victor Zverovich's avatar Victor Zverovich

Fix compilation with clang.

parent d5c82bc7
...@@ -409,7 +409,7 @@ class StrFormatSpec : public AlignSpec { ...@@ -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 { ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment