From 52aabbe7efe9c71c24ef1b1397de16c9844eea5d 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. --- fmt/format.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fmt/format.h b/fmt/format.h index a8b5c479..21ebd9ee 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1959,6 +1959,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_; } Spec &spec() { return spec_; }