diff options
| author | Sam Varshavchik | 2022-05-22 13:35:13 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 13:35:13 -0400 |
| commit | ac1eba1d2cd22e62b24b963028f2cd623b1ab1da (patch) | |
| tree | eadfb723e38032bd93bfac702c113a5e9fbcd751 /unicode/courier-unicode.h.in | |
| parent | 412734515b10bea970348dacdf42be3dc59845a6 (diff) | |
| download | courier-libs-ac1eba1d2cd22e62b24b963028f2cd623b1ab1da.tar.bz2 | |
gcc 12 and autotools updates.
Diffstat (limited to 'unicode/courier-unicode.h.in')
| -rw-r--r-- | unicode/courier-unicode.h.in | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/unicode/courier-unicode.h.in b/unicode/courier-unicode.h.in index 6a6882e..95add35 100644 --- a/unicode/courier-unicode.h.in +++ b/unicode/courier-unicode.h.in @@ -1861,9 +1861,15 @@ private: ** an input iterator sequence over linebreak values. */ -template<typename input_t> class linebreak_iter - : public std::iterator<std::input_iterator_tag, int, void> -{ +template<typename input_t> class linebreak_iter { + +public: + typedef std::input_iterator_tag iterator_category; + typedef int value_type; + typedef void difference_type; + typedef value_type * pointer; + typedef value_type & reference; +private: mutable input_t iter_value, end_iter_value; mutable linebreak_callback_save_buf *buf; @@ -2054,10 +2060,16 @@ private: ** the character. */ -template<typename input_t> class linebreakc_iter - : public std::iterator<std::input_iterator_tag, - std::pair<int, char32_t>, void> -{ +template<typename input_t> class linebreakc_iter { + +public: + typedef std::input_iterator_tag iterator_category; + typedef std::pair<int, char32_t> value_type; + typedef void difference_type; + typedef value_type * pointer; + typedef value_type & reference; +private: + mutable input_t iter_value, end_iter_value; mutable linebreakc_callback_save_buf *buf; |
