BodyReader and BodyWriter names are swapped (API Change):

Body::reader and Body::writer meanings are reversed, for
consistency with the names of the stream operations:

* Body::reader is used for read, read_some, async_read, async_read_some
* Body::writer is used for write, write_some, async_write, async_write_some

Actions Required:

* Swap the reader and writer names for user defined Body types
* Swap use of is_body_reader and is_body_writer
This commit is contained in:
Vinnie Falco
2017-10-30 18:13:40 -07:00
parent 101023553e
commit 895c9fa7ed
29 changed files with 582 additions and 583 deletions
+3 -3
View File
@@ -299,7 +299,7 @@ void fxx() {
the @b SyncWriteStream concept.
@param m The message to send. The Body type must support
the @b BodyReader concept.
the @b BodyWriter concept.
*/
template<
class SyncWriteStream,
@@ -312,8 +312,8 @@ send(
// Check the template types
static_assert(is_sync_write_stream<SyncWriteStream>::value,
"SyncWriteStream requirements not met");
static_assert(is_body_reader<Body>::value,
"BodyReader requirements not met");
static_assert(is_body_writer<Body>::value,
"BodyWriter requirements not met");
// Create the instance of serializer for the message
serializer<isRequest, Body, Fields> sr{m};