Commit ec665108 authored by Victor Zverovich's avatar Victor Zverovich

Remove old is_constructible workarounds and replace typedefs with using

parent 4d4b8c23
This diff is collapsed.
...@@ -329,12 +329,9 @@ template <typename T> struct printf_formatter { ...@@ -329,12 +329,9 @@ template <typename T> struct printf_formatter {
template <typename OutputIt, typename Char> class basic_printf_context { template <typename OutputIt, typename Char> class basic_printf_context {
public: public:
/** The character type for the output. */ /** The character type for the output. */
typedef Char char_type; using char_type = Char;
typedef basic_format_arg<basic_printf_context> format_arg; using format_arg = basic_format_arg<basic_printf_context>;
template <typename T> using formatter_type = printf_formatter<T>;
template <typename T> struct formatter_type {
typedef printf_formatter<T> type;
};
private: private:
typedef basic_format_specs<char_type> format_specs; typedef basic_format_specs<char_type> format_specs;
......
...@@ -209,17 +209,15 @@ struct custom_context { ...@@ -209,17 +209,15 @@ struct custom_context {
typedef char char_type; typedef char char_type;
template <typename T> struct formatter_type { template <typename T> struct formatter_type {
struct type { template <typename ParseContext>
template <typename ParseContext> auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { return ctx.begin();
return ctx.begin(); }
}
const char* format(const T&, custom_context& ctx) {
const char* format(const T&, custom_context& ctx) { ctx.called = true;
ctx.called = true; return nullptr;
return nullptr; }
}
};
}; };
bool called; bool called;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment