Workaround MSVC lookup issue in ArgFormatterBase

Fixes #505.

(cherry picked from commit 52aabbe7ef)
This commit is contained in:
Jonathan Müller
2017-05-05 14:40:58 +02:00
parent 1934d9e5d9
commit e6df023916

View File

@ -1879,6 +1879,9 @@ class ArgFormatterBase : public ArgVisitor<Impl, void> {
writer_.write_int(reinterpret_cast<uintptr_t>(p), spec_);
}
// workaround MSVC two-phase lookup issue
typedef internal::Arg Arg;
protected:
BasicWriter<Char> &writer() { return writer_; }
FormatSpec &spec() { return spec_; }