File tree 2 files changed +38
-4
lines changed
include/boost/algorithm/string
2 files changed +38
-4
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,26 @@ namespace boost {
40
40
// Protected construction/destruction
41
41
42
42
// Default constructor
43
- find_iterator_base () {}
43
+ BOOST_DEFAULTED_FUNCTION (find_iterator_base(), {})
44
+
44
45
// Copy construction
45
- find_iterator_base ( const find_iterator_base& Other ) :
46
+ BOOST_DEFAULTED_FUNCTION ( find_iterator_base( const find_iterator_base& Other ), :
46
47
m_Finder (Other.m_Finder) {}
48
+ )
49
+
50
+ // Assignment
51
+ BOOST_DEFAULTED_FUNCTION (find_iterator_base& operator =( const find_iterator_base& Other ), {
52
+ m_Finder = Other.m_Finder ;
53
+ return *this ;
54
+ })
47
55
48
56
// Constructor
49
57
template <typename FinderT>
50
58
find_iterator_base ( FinderT Finder, int ) :
51
59
m_Finder (Finder) {}
52
60
53
61
// Destructor
54
- ~find_iterator_base () {}
62
+ BOOST_DEFAULTED_FUNCTION ( ~find_iterator_base (), {})
55
63
56
64
// Find operation
57
65
match_type do_find (
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ namespace boost {
74
74
75
75
\post eof()==true
76
76
*/
77
- find_iterator () {}
77
+ BOOST_DEFAULTED_FUNCTION ( find_iterator(), {})
78
78
79
79
// ! Copy constructor
80
80
/* !
@@ -85,6 +85,18 @@ namespace boost {
85
85
m_Match (Other.m_Match),
86
86
m_End (Other.m_End) {}
87
87
88
+ // ! Copy assignment
89
+ /* !
90
+ Assigns a copy of the find_iterator
91
+ */
92
+ BOOST_DEFAULTED_FUNCTION (find_iterator& operator =( const find_iterator& Other ), {
93
+ if (this == &Other) return *this ;
94
+ this ->base_type ::operator =(Other);
95
+ m_Match = Other.m_Match ;
96
+ m_End = Other.m_End ;
97
+ return *this ;
98
+ })
99
+
88
100
// ! Constructor
89
101
/* !
90
102
Construct new find_iterator for a given finder
@@ -248,6 +260,20 @@ namespace boost {
248
260
m_bEof (Other.m_bEof)
249
261
{}
250
262
263
+ // ! Assignment operator
264
+ /* !
265
+ Assigns a copy of the split_iterator
266
+ */
267
+ BOOST_DEFAULTED_FUNCTION (split_iterator& operator =( const split_iterator& Other ), {
268
+ if (this == &Other) return *this ;
269
+ this ->base_type ::operator =(Other);
270
+ m_Match = Other.m_Match ;
271
+ m_Next = Other.m_Next ;
272
+ m_End = Other.m_End ;
273
+ m_bEof = Other.m_bEof ;
274
+ return *this ;
275
+ })
276
+
251
277
// ! Constructor
252
278
/* !
253
279
Construct new split_iterator for a given finder
You can’t perform that action at this time.
0 commit comments