Skip to content

Commit

Permalink
Fixed clang -Wreserved-identifier warings
Browse files Browse the repository at this point in the history
Renamed type to not use underscore + capital prefix, which is reserved.
  • Loading branch information
seanm committed Mar 7, 2022
1 parent 24e7bd5 commit 69430ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/fmt/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ template <typename OutputIt> class truncating_iterator_base {
using difference_type = std::ptrdiff_t;
using pointer = void;
using reference = void;
using _Unchecked_type =
using Unchecked_type_ =
truncating_iterator_base; // Mark iterator as checked.

OutputIt base() const { return out_; }
Expand Down
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ class appender : public std::back_insert_iterator<detail::buffer<char>> {
public:
using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator;
appender(base it) noexcept : base(it) {}
using _Unchecked_type = appender; // Mark iterator as checked.
using Unchecked_type_ = appender; // Mark iterator as checked.

auto operator++() noexcept -> appender& { return *this; }

Expand Down
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ class counting_iterator {
using difference_type = std::ptrdiff_t;
using pointer = void;
using reference = void;
using _Unchecked_type = counting_iterator; // Mark iterator as checked.
using Unchecked_type_ = counting_iterator; // Mark iterator as checked.

struct value_type {
template <typename T> void operator=(const T&) {}
Expand Down

0 comments on commit 69430ff

Please sign in to comment.