Remove deprecated serializer::reader_impl()

This commit is contained in:
Vinnie Falco
2018-05-03 19:42:36 -07:00
parent f48b978044
commit 73bc28aaa2
3 changed files with 11 additions and 29 deletions

View File

@ -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()
--------------------------------------------------------------------------------

View File

@ -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)`]

View File

@ -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