Skip to content

Commit

Permalink
Removed deprecated-copy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisse74 committed Jan 17, 2023
1 parent 65fc893 commit 674f3e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/boost/iostreams/detail/adapter/concept_adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class concept_adapter {

std::streamsize optimal_buffer_size() const
{ return iostreams::optimal_buffer_size(t_); }
BOOST_DEFAULTED_FUNCTION(concept_adapter(const concept_adapter&), {});
private:
BOOST_DELETED_FUNCTION(concept_adapter& operator=(const concept_adapter&))
value_type t_;
Expand Down
8 changes: 8 additions & 0 deletions include/boost/iostreams/detail/functional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class device_close_operation {
: t_(t), which_(which)
{ }
void operator()() const { boost::iostreams::close(t_, which_); }
BOOST_DEFAULTED_FUNCTION(device_close_operation(const device_close_operation&), {});
private:
BOOST_DELETED_FUNCTION(device_close_operation& operator=(const device_close_operation&))
T& t_;
Expand All @@ -51,6 +52,7 @@ class filter_close_operation {
: t_(t), snk_(snk), which_(which)
{ }
void operator()() const { boost::iostreams::close(t_, snk_, which_); }
BOOST_DEFAULTED_FUNCTION(filter_close_operation(const filter_close_operation&), {});
private:
BOOST_DELETED_FUNCTION(filter_close_operation& operator=(const filter_close_operation&))
T& t_;
Expand All @@ -77,6 +79,7 @@ class device_close_all_operation {
typedef void result_type;
device_close_all_operation(T& t) : t_(t) { }
void operator()() const { detail::close_all(t_); }
BOOST_DEFAULTED_FUNCTION(device_close_all_operation(const device_close_all_operation&), {});
private:
BOOST_DELETED_FUNCTION(device_close_all_operation& operator=(const device_close_all_operation&))
T& t_;
Expand All @@ -88,6 +91,7 @@ class filter_close_all_operation {
typedef void result_type;
filter_close_all_operation(T& t, Sink& snk) : t_(t), snk_(snk) { }
void operator()() const { detail::close_all(t_, snk_); }
BOOST_DEFAULTED_FUNCTION(filter_close_all_operation(const filter_close_all_operation&), {});
private:
BOOST_DELETED_FUNCTION(filter_close_all_operation& operator=(const filter_close_all_operation&))
T& t_;
Expand All @@ -114,6 +118,7 @@ class member_close_operation {
: t_(t), which_(which)
{ }
void operator()() const { t_.close(which_); }
BOOST_DEFAULTED_FUNCTION(member_close_operation(const member_close_operation&), {});
private:
BOOST_DELETED_FUNCTION(member_close_operation& operator=(const member_close_operation&))
T& t_;
Expand All @@ -132,6 +137,7 @@ class reset_operation {
public:
reset_operation(T& t) : t_(t) { }
void operator()() const { t_.reset(); }
BOOST_DEFAULTED_FUNCTION(reset_operation(const reset_operation&), {});
private:
BOOST_DELETED_FUNCTION(reset_operation& operator=(const reset_operation&))
T& t_;
Expand All @@ -148,6 +154,7 @@ class clear_flags_operation {
typedef void result_type;
clear_flags_operation(T& t) : t_(t) { }
void operator()() const { t_ = 0; }
BOOST_DEFAULTED_FUNCTION(clear_flags_operation(const clear_flags_operation&), {});
private:
BOOST_DELETED_FUNCTION(clear_flags_operation& operator=(const clear_flags_operation&))
T& t_;
Expand All @@ -172,6 +179,7 @@ class flush_buffer_operation {
if (flush_)
buf_.flush(dev_);
}
BOOST_DEFAULTED_FUNCTION(flush_buffer_operation(const flush_buffer_operation&), {});
private:
BOOST_DELETED_FUNCTION(flush_buffer_operation& operator=(const flush_buffer_operation&))
Buffer& buf_;
Expand Down

0 comments on commit 674f3e9

Please sign in to comment.