From e6df023916c332eba7cd8b8d9990f4f356ce339b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Fri, 5 May 2017 14:40:58 +0200 Subject: [PATCH] Workaround MSVC lookup issue in ArgFormatterBase Fixes #505. (cherry picked from commit 52aabbe7efe9c71c24ef1b1397de16c9844eea5d) --- fmt/format.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fmt/format.h b/fmt/format.h index 2bcb7e28..535a78b3 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1879,6 +1879,9 @@ class ArgFormatterBase : public ArgVisitor { writer_.write_int(reinterpret_cast(p), spec_); } + // workaround MSVC two-phase lookup issue + typedef internal::Arg Arg; + protected: BasicWriter &writer() { return writer_; } FormatSpec &spec() { return spec_; }