Workaround MSVC lookup issue in ArgFormatterBase

Fixes #505.
This commit is contained in:
Jonathan Müller 2017-05-05 14:40:58 +02:00
parent 4423490d0b
commit 52aabbe7ef

View File

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