Skip to content

Commit

Permalink
Derp: iterator concepts require a non-voiddifference type
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyCarter committed Oct 2, 2024
1 parent 1accf6c commit 2f2e0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace std {
template <class T> struct iterator_traits<fmt::basic_appender<T>> {
using iterator_category = output_iterator_tag;
using value_type = T;
using difference_type = void;
using difference_type = decltype(static_cast<int*>(nullptr) - static_cast<int*>(nullptr));
using pointer = void;
using reference = void;
};
Expand Down

0 comments on commit 2f2e0fe

Please sign in to comment.