diff --git a/CHANGELOG.md b/CHANGELOG.md index 77e5bf05..6b33e194 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Version 170: * Add test::fail_count to experimental * Add test::stream to experimental * Use a shared string for example HTTP server doc roots +* Remove deprecated serializer::reader_impl() -------------------------------------------------------------------------------- diff --git a/doc/qbk/07_concepts/BodyWriter.qbk b/doc/qbk/07_concepts/BodyWriter.qbk index 578326da..3ca52cf9 100644 --- a/doc/qbk/07_concepts/BodyWriter.qbk +++ b/doc/qbk/07_concepts/BodyWriter.qbk @@ -61,21 +61,22 @@ In this table: [] [ Constructible from `h` and `v`. The lifetime of `h` and `v` - is guaranteed to end no earlier than after the `W` is destroyed. + are guaranteed to end no earlier than after the `W` is destroyed. The writer shall not access the contents of `h` or `v` before the first call to `init`, permitting lazy construction of the message. - The constructor may optionally require that `v` is const, which - has these consequences: + The constructor may optionally require that `h` and `v` are + `const` references, with these consequences: - * If `W` requires that `v` is a const reference, then serializers - constructed for messages with this body type will also require a - const reference to a message, otherwise: + * If `W` requires that `h` and `v` are const references, then + the corresponding serializer constructors for messages with this + body type will will accept a const reference to a message, + otherwise: - * If `W` requires that `v` is a non-const reference, then serializers - constructed for messages with this body type will aso require - a non-const reference to a message. + * If `W` requires that `h` and `v` are non-const references, + then the corresponding serializer constructors for messages with + this body type will require a non-const reference to a message. ] ][ [`a.init(ec)`] diff --git a/include/boost/beast/http/serializer.hpp b/include/boost/beast/http/serializer.hpp index bbb562a6..e598ad02 100644 --- a/include/boost/beast/http/serializer.hpp +++ b/include/boost/beast/http/serializer.hpp @@ -344,26 +344,6 @@ public: void consume(std::size_t n); - /** Provides low-level access to the associated @b BodyWriter (DEPRECATED) - - This function provides access to the instance of the writer - associated with the body and created by the serializer - upon construction. The behavior of accessing this object - is defined by the specification of the particular writer - and its associated body. - - @return A reference to the writer. - */ - writer& - reader_impl() - { - #ifndef BOOST_BEAST_ALLOW_DEPRECATED - BOOST_STATIC_ASSERT_MSG(sizeof(Body) == 0, - BOOST_BEAST_DEPRECATION_STRING); - #endif - return wr_; - } - /** Provides low-level access to the associated @b BodyWriter This function provides access to the instance of the writer