fix typename outside of template error in msvc

This commit is contained in:
Thomas Fussell 2016-11-27 15:44:41 +01:00
parent 1ff174a0c9
commit 49860895ce

View File

@ -638,7 +638,7 @@ void number_format_parser::finalize()
auto temp = code.parts[exponent_index].placeholders.type; auto temp = code.parts[exponent_index].placeholders.type;
code.parts[exponent_index].placeholders = next.placeholders; code.parts[exponent_index].placeholders = next.placeholders;
code.parts[exponent_index].placeholders.type = temp; code.parts[exponent_index].placeholders.type = temp;
code.parts.erase(code.parts.begin() + static_cast<typename std::vector<format_code>::difference_type>(exponent_index + 1)); code.parts.erase(code.parts.begin() + static_cast<std::ptrdiff_t>(exponent_index + 1));
for (std::size_t i = 0; i < code.parts.size(); ++i) for (std::size_t i = 0; i < code.parts.size(); ++i)
{ {