diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dc188b5..a6a8167c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Version 76: * BodyReader may construct from a non-const message * Add serializer::get * Add serializer::chunked +* Serializer members are not const API Changes: diff --git a/include/beast/http/impl/write.ipp b/include/beast/http/impl/write.ipp index 6a9287c5..66da2d17 100644 --- a/include/beast/http/impl/write.ipp +++ b/include/beast/http/impl/write.ipp @@ -177,7 +177,7 @@ struct serializer_is_header_done class Fields, class Decorator> bool operator()(serializer const& sr) const + Fields, Decorator>& sr) const { return sr.is_header_done(); } @@ -189,7 +189,7 @@ struct serializer_is_done class Fields, class Decorator> bool operator()(serializer const& sr) const + Fields, Decorator>& sr) const { return sr.is_done(); } diff --git a/include/beast/http/serializer.hpp b/include/beast/http/serializer.hpp index ef7b30f2..b5668f19 100644 --- a/include/beast/http/serializer.hpp +++ b/include/beast/http/serializer.hpp @@ -318,7 +318,7 @@ public: /// Returns the serialized buffer size limit std::size_t - limit() const + limit() { return limit_; } @@ -344,7 +344,7 @@ public: /** Returns `true` if we will pause after writing the complete header. */ bool - split() const + split() { return split_; } @@ -368,7 +368,7 @@ public: serialized header octets have been retrieved. */ bool - is_header_done() const + is_header_done() { return header_done_; } @@ -380,7 +380,7 @@ public: successfully retrieved. */ bool - is_done() const + is_done() { return s_ == do_complete; }