Skip to content

Commit

Permalink
Remove use of deprecated behavior involving copy members in beast
Browse files Browse the repository at this point in the history
*  If any of the destructor, copy assignment or copy constructor
   are user-declared, both copy members should be user-declared,
   otherwise the compiler-generation of them is deprecated.
  • Loading branch information
HowardHinnant authored and seelabs committed Dec 1, 2017
1 parent 50b35e2 commit 16acba1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/beast/include/beast/http/detail/chunk_encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ class chunk_header
copy(other);
}

/// Copy assignment
chunk_header& operator=(chunk_header const& other)
{
if (this != &other)
copy(other);
return *this;
}

/** Construct a chunk header
@param n The number of octets in this chunk.
Expand Down
2 changes: 0 additions & 2 deletions src/beast/include/beast/http/impl/fields.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ public:
using value_type =
typename const_iterator::value_type;

field_range(field_range const&) = default;

field_range(iter_type first, iter_type last)
: first_(first)
, last_(last)
Expand Down

0 comments on commit 16acba1

Please sign in to comment.