mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 08:25:51 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user