From 49860895cedda1d100c3efcdff4e5f098ff6903e Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Sun, 27 Nov 2016 15:44:41 +0100 Subject: [PATCH] fix typename outside of template error in msvc --- source/detail/number_formatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/detail/number_formatter.cpp b/source/detail/number_formatter.cpp index 7fe1b306..ae106100 100644 --- a/source/detail/number_formatter.cpp +++ b/source/detail/number_formatter.cpp @@ -638,7 +638,7 @@ void number_format_parser::finalize() auto temp = code.parts[exponent_index].placeholders.type; code.parts[exponent_index].placeholders = next.placeholders; code.parts[exponent_index].placeholders.type = temp; - code.parts.erase(code.parts.begin() + static_cast::difference_type>(exponent_index + 1)); + code.parts.erase(code.parts.begin() + static_cast(exponent_index + 1)); for (std::size_t i = 0; i < code.parts.size(); ++i) {