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::fail_count to experimental
* Add test::stream to experimental * Add test::stream to experimental
* Use a shared string for example HTTP server doc roots * 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` 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 writer shall not access the contents of `h` or `v` before
the first call to `init`, permitting lazy construction of the the first call to `init`, permitting lazy construction of the
message. message.
The constructor may optionally require that `v` is const, which The constructor may optionally require that `h` and `v` are
has these consequences: `const` references, with these consequences:
* If `W` requires that `v` is a const reference, then serializers * If `W` requires that `h` and `v` are const references, then
constructed for messages with this body type will also require a the corresponding serializer constructors for messages with this
const reference to a message, otherwise: body type will will accept a const reference to a message,
otherwise:
* If `W` requires that `v` is a non-const reference, then serializers * If `W` requires that `h` and `v` are non-const references,
constructed for messages with this body type will aso require then the corresponding serializer constructors for messages with
a non-const reference to a message. this body type will require a non-const reference to a message.
] ]
][ ][
[`a.init(ec)`] [`a.init(ec)`]

View File

@@ -344,26 +344,6 @@ public:
void void
consume(std::size_t n); 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 /** Provides low-level access to the associated @b BodyWriter
This function provides access to the instance of the writer This function provides access to the instance of the writer