Serializer members are not const

This commit is contained in:
Vinnie Falco
2017-07-07 23:49:02 -07:00
parent 83403570bd
commit 8a3df73ffc
3 changed files with 7 additions and 6 deletions

View File

@ -5,6 +5,7 @@ Version 76:
* BodyReader may construct from a non-const message * BodyReader may construct from a non-const message
* Add serializer::get * Add serializer::get
* Add serializer::chunked * Add serializer::chunked
* Serializer members are not const
API Changes: API Changes:

View File

@ -177,7 +177,7 @@ struct serializer_is_header_done
class Fields, class Decorator> class Fields, class Decorator>
bool bool
operator()(serializer<isRequest, Body, operator()(serializer<isRequest, Body,
Fields, Decorator> const& sr) const Fields, Decorator>& sr) const
{ {
return sr.is_header_done(); return sr.is_header_done();
} }
@ -189,7 +189,7 @@ struct serializer_is_done
class Fields, class Decorator> class Fields, class Decorator>
bool bool
operator()(serializer<isRequest, Body, operator()(serializer<isRequest, Body,
Fields, Decorator> const& sr) const Fields, Decorator>& sr) const
{ {
return sr.is_done(); return sr.is_done();
} }

View File

@ -318,7 +318,7 @@ public:
/// Returns the serialized buffer size limit /// Returns the serialized buffer size limit
std::size_t std::size_t
limit() const limit()
{ {
return limit_; return limit_;
} }
@ -344,7 +344,7 @@ public:
/** Returns `true` if we will pause after writing the complete header. /** Returns `true` if we will pause after writing the complete header.
*/ */
bool bool
split() const split()
{ {
return split_; return split_;
} }
@ -368,7 +368,7 @@ public:
serialized header octets have been retrieved. serialized header octets have been retrieved.
*/ */
bool bool
is_header_done() const is_header_done()
{ {
return header_done_; return header_done_;
} }
@ -380,7 +380,7 @@ public:
successfully retrieved. successfully retrieved.
*/ */
bool bool
is_done() const is_done()
{ {
return s_ == do_complete; return s_ == do_complete;
} }