We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b4779 commit 46ebc38Copy full SHA for 46ebc38
src/Segments.hpp
@@ -18,6 +18,7 @@
18
19
#pragma once
20
21
+#include <iterator>
22
#include <sstream>
23
24
#include "Common.hpp"
@@ -53,8 +54,11 @@ class OPENCC_EXPORT Segments {
53
54
managed.push_back(str);
55
}
56
- class iterator : public std::iterator<std::input_iterator_tag, const char*> {
57
+ class iterator {
58
public:
59
+ using iterator_category = std::input_iterator_tag;
60
+ using value_type = const char*;
61
+
62
iterator(const Segments* const _segments, size_t _cursor)
63
: segments(_segments), cursor(_cursor) {}
64
0 commit comments