@@ -36,6 +36,7 @@ class device_close_operation {
36
36
device_close_operation (T& t, BOOST_IOS::openmode which)
37
37
: t_(t), which_(which)
38
38
{ }
39
+ BOOST_DEFAULTED_FUNCTION (device_close_operation(const device_close_operation& rhs), : t_(rhs.t_), which_(rhs.which_) {});
39
40
void operator ()() const { boost::iostreams::close (t_, which_); }
40
41
private:
41
42
BOOST_DELETED_FUNCTION (device_close_operation& operator =(const device_close_operation&))
@@ -50,6 +51,7 @@ class filter_close_operation {
50
51
filter_close_operation (T& t, Sink& snk, BOOST_IOS::openmode which)
51
52
: t_(t), snk_(snk), which_(which)
52
53
{ }
54
+ BOOST_DEFAULTED_FUNCTION (filter_close_operation(const filter_close_operation& rhs), : t_(rhs.t_), snk_(rhs.snk_), which_(rhs.which_) {});
53
55
void operator ()() const { boost::iostreams::close (t_, snk_, which_); }
54
56
private:
55
57
BOOST_DELETED_FUNCTION (filter_close_operation& operator =(const filter_close_operation&))
@@ -76,6 +78,7 @@ class device_close_all_operation {
76
78
public:
77
79
typedef void result_type;
78
80
device_close_all_operation (T& t) : t_(t) { }
81
+ BOOST_DEFAULTED_FUNCTION (device_close_all_operation(const device_close_all_operation& rhs), : t_(rhs.t_) {});
79
82
void operator ()() const { detail::close_all (t_); }
80
83
private:
81
84
BOOST_DELETED_FUNCTION (device_close_all_operation& operator =(const device_close_all_operation&))
@@ -87,6 +90,7 @@ class filter_close_all_operation {
87
90
public:
88
91
typedef void result_type;
89
92
filter_close_all_operation (T& t, Sink& snk) : t_(t), snk_(snk) { }
93
+ BOOST_DEFAULTED_FUNCTION (filter_close_all_operation(const filter_close_all_operation& rhs), : t_(rhs.t_), snk_(rhs.snk_) {});
90
94
void operator ()() const { detail::close_all (t_, snk_); }
91
95
private:
92
96
BOOST_DELETED_FUNCTION (filter_close_all_operation& operator =(const filter_close_all_operation&))
@@ -113,6 +117,7 @@ class member_close_operation {
113
117
member_close_operation (T& t, BOOST_IOS::openmode which)
114
118
: t_(t), which_(which)
115
119
{ }
120
+ BOOST_DEFAULTED_FUNCTION (member_close_operation(const member_close_operation& rhs), : t_(rhs.t_), which_(rhs.which_) {});
116
121
void operator ()() const { t_.close (which_); }
117
122
private:
118
123
BOOST_DELETED_FUNCTION (member_close_operation& operator =(const member_close_operation&))
@@ -131,6 +136,7 @@ template<typename T>
131
136
class reset_operation {
132
137
public:
133
138
reset_operation (T& t) : t_(t) { }
139
+ BOOST_DEFAULTED_FUNCTION (reset_operation(const reset_operation& rhs), : t_(rhs.t_) {});
134
140
void operator ()() const { t_.reset (); }
135
141
private:
136
142
BOOST_DELETED_FUNCTION (reset_operation& operator =(const reset_operation&))
@@ -147,6 +153,7 @@ class clear_flags_operation {
147
153
public:
148
154
typedef void result_type;
149
155
clear_flags_operation (T& t) : t_(t) { }
156
+ BOOST_DEFAULTED_FUNCTION (clear_flags_operation(const clear_flags_operation& rhs), : t_(rhs.t_) {});
150
157
void operator ()() const { t_ = 0 ; }
151
158
private:
152
159
BOOST_DELETED_FUNCTION (clear_flags_operation& operator =(const clear_flags_operation&))
@@ -167,6 +174,7 @@ class flush_buffer_operation {
167
174
flush_buffer_operation (Buffer& buf, Device& dev, bool flush)
168
175
: buf_(buf), dev_(dev), flush_(flush)
169
176
{ }
177
+ BOOST_DEFAULTED_FUNCTION (flush_buffer_operation(const flush_buffer_operation& rhs), : buf_(rhs.buf_), dev_(rhs.dev_), flush_(rhs.flush_) {});
170
178
void operator ()() const
171
179
{
172
180
if (flush_)
0 commit comments