diff --git a/src/beast/include/beast/http/detail/chunk_encode.hpp b/src/beast/include/beast/http/detail/chunk_encode.hpp index 059f36344c..8b4a2e08c4 100644 --- a/src/beast/include/beast/http/detail/chunk_encode.hpp +++ b/src/beast/include/beast/http/detail/chunk_encode.hpp @@ -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. diff --git a/src/beast/include/beast/http/impl/fields.ipp b/src/beast/include/beast/http/impl/fields.ipp index f5b4a1598d..44df4c6e5f 100644 --- a/src/beast/include/beast/http/impl/fields.ipp +++ b/src/beast/include/beast/http/impl/fields.ipp @@ -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)