Skip to content

Commit

Permalink
Remove deprecated std::iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
IbarakiKasen committed Jun 12, 2022
1 parent 7ecd01e commit 890261f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libaegisub/include/libaegisub/line_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class line_iterator_base {
/// @class line_iterator
/// @brief An iterator over lines in a stream
template<class OutputType = std::string>
class line_iterator final : public line_iterator_base, public std::iterator<std::input_iterator_tag, OutputType> {
class line_iterator final : public line_iterator_base {
OutputType value; ///< Value to return when this is dereference

/// @brief Convert a string to the output type
Expand Down Expand Up @@ -101,6 +101,9 @@ class line_iterator final : public line_iterator_base, public std::iterator<std:
}

// typedefs needed by some stl algorithms
typedef std::input_iterator_tag iterator_category;
typedef OutputType value_type;
typedef std::ptrdiff_t difference_type;
typedef OutputType* pointer;
typedef OutputType& reference;
typedef const OutputType* const_pointer;
Expand Down

0 comments on commit 890261f

Please sign in to comment.