parse_context -> format_parse_context

This commit is contained in:
Victor Zverovich 2018-11-21 06:36:16 -08:00
parent b7b8548559
commit 982ee5c699
3 changed files with 8 additions and 2 deletions

View File

@ -918,6 +918,10 @@ class basic_parse_context : private ErrorHandler {
FMT_CONSTEXPR ErrorHandler error_handler() const { return *this; }
};
typedef basic_parse_context<char> format_parse_context;
typedef basic_parse_context<wchar_t> wformat_parse_context;
// DEPRECATED!
typedef basic_parse_context<char> parse_context;
typedef basic_parse_context<wchar_t> wparse_context;

View File

@ -228,7 +228,9 @@ struct custom_context {
bool called;
fmt::parse_context parse_context() { return fmt::parse_context(""); }
fmt::format_parse_context parse_context() {
return fmt::format_parse_context("");
}
void advance_to(const char *) {}
};

View File

@ -1,4 +1,4 @@
// Formatting library for C++ - core tests
// Formatting library for C++ - locale tests
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.