Remove use of deprecated behavior involving copy members in beast

*  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.
This commit is contained in:
Howard Hinnant
2017-09-05 14:33:10 -04:00
committed by seelabs
parent 50b35e2090
commit 16acba1636
2 changed files with 8 additions and 2 deletions

View File

@@ -70,6 +70,14 @@ public:
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.

View File

@@ -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)