Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jun 12, 2019
1 parent 5e293bd commit 9d7b64a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,6 @@ struct is_contiguous<internal::buffer<Char>> : std::true_type {};

namespace internal {

// Workaround for a SFINAE issue in gcc < 9:
// https://stackoverflow.com/q/56436995/471164
template <typename OutputIt>
struct is_contiguous_back_insert_iterator : std::false_type {};
template <typename Container>
Expand Down
9 changes: 3 additions & 6 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <memory>
#include <stdexcept>

#include "core.h"

#ifdef __clang__
# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
#else
Expand All @@ -57,8 +59,6 @@
# define FMT_CUDA_VERSION 0
#endif

#include "core.h"

#if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION
# pragma GCC diagnostic push

Expand Down Expand Up @@ -2270,10 +2270,7 @@ void handle_dynamic_spec(Spec& value, arg_ref<typename Context::char_type> ref,

/** The default argument formatter. */
template <typename Range>
class arg_formatter
: public internal::function<
typename internal::arg_formatter_base<Range>::iterator>,
public internal::arg_formatter_base<Range> {
class arg_formatter : public internal::arg_formatter_base<Range> {
private:
typedef typename Range::value_type char_type;
typedef internal::arg_formatter_base<Range> base;
Expand Down
5 changes: 1 addition & 4 deletions include/fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ template <typename OutputIt, typename Char> class basic_printf_context;
\endrst
*/
template <typename Range>
class printf_arg_formatter
: public internal::function<
typename internal::arg_formatter_base<Range>::iterator>,
public internal::arg_formatter_base<Range> {
class printf_arg_formatter : public internal::arg_formatter_base<Range> {
public:
typedef decltype(std::declval<Range>().begin()) iterator;

Expand Down

0 comments on commit 9d7b64a

Please sign in to comment.