Remove old is_constructible workarounds and replace typedefs with using

This commit is contained in:
Victor Zverovich
2019-06-02 16:04:17 -07:00
parent 4d4b8c238d
commit ec6651087d
3 changed files with 56 additions and 85 deletions

View File

@@ -209,17 +209,15 @@ struct custom_context {
typedef char char_type;
template <typename T> struct formatter_type {
struct type {
template <typename ParseContext>
auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
return ctx.begin();
}
template <typename ParseContext>
auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
return ctx.begin();
}
const char* format(const T&, custom_context& ctx) {
ctx.called = true;
return nullptr;
}
};
const char* format(const T&, custom_context& ctx) {
ctx.called = true;
return nullptr;
}
};
bool called;