Disable std::future snippet for libstdc++ bug

This commit is contained in:
Vinnie Falco
2017-06-08 20:40:30 -07:00
parent 9e910761cc
commit ce70d45c7a
2 changed files with 27 additions and 25 deletions

View File

@ -2,45 +2,45 @@ Version 52:
API Changes: API Changes:
* auto_fragment is a member of stream * `auto_fragment` is a member of `stream`
* binary, text are members of stream * `binary`, `text` are members of `stream`
* read_buffer_size is a member of stream * read_buffer_size is a member of `stream`
* read_message_max is a member of stream * read_message_max is a member of `stream`
* write_buffer_size is a member of stream * `write_buffer_size` is a member of `stream`
* ping_callback is a member of stream * `ping_callback` is a member of stream
* Remove opcode from read, async_read * Remove `opcode` from `read`, `async_read`
* read_frame returns `bool` fin * `read_frame` returns `bool` fin
Actions Required: Actions Required:
* Change call sites which use auto_fragment with set_option * Change call sites which use `auto_fragment` with `set_option`
to call stream::auto_fragment instead. to call `stream::auto_fragment` instead.
* Change call sites which use message_type with set_option * Change call sites which use message_type with `set_option`
to call stream::binary or stream::text instead. to call `stream::binary` or `stream::text` instead.
* Change call sites which use read_buffer_size with set_option to * Change call sites which use read_buffer_size with `set_option` to
call stream::read_buffer_size instead. call `stream::read_buffer_size` instead.
* Change call sites which use read_message_max with set_option to * Change call sites which use read_message_max with `set_option` to
call stream::read_message_max instead. call `stream::read_message_max` instead.
* Change call sites which use write_buffer_size with set_option to * Change call sites which use write_buffer_size with `set_option` to
call stream::write_buffer_size instead. call `stream::write_buffer_size` instead.
* Change call sites which use ping_callback with set_option to * Change call sites which use ping_callback with `set_option` to
call stream::ping_callback instead. call `stream::ping_callback` instead.
* Remove the `opcode` reference parameter from calls to synchronous * Remove the `opcode` reference parameter from calls to synchronous
and asynchronous read functions, replace the logic with calls to and asynchronous read functions, replace the logic with calls to
stream::got_binary and stream::got_text instead. `stream::got_binary` and `stream::got_text` instead.
* Remove the frame_info parameter from all read frame call sites * Remove the `frame_info` parameter from all read frame call sites
* Check the return value 'fin' for calls to read_frame * Check the return value 'fin' for calls to `read_frame`
* Change ReadHandlers passed to async_read_frame to have * Change ReadHandlers passed to `async_read_frame` to have
the signature void(error_code, bool fin), use the bool the signature `void(error_code, bool fin)`, use the `bool`
to indicate if the frame is the last frame. to indicate if the frame is the last frame.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -216,6 +216,7 @@ boost::asio::ip::tcp::socket sock{ios};
} // fxx() } // fxx()
#if 0
//[ws_snippet_21 //[ws_snippet_21
void echo(stream<boost::asio::ip::tcp::socket>& ws, void echo(stream<boost::asio::ip::tcp::socket>& ws,
multi_buffer& buffer, boost::asio::yield_context yield) multi_buffer& buffer, boost::asio::yield_context yield)
@ -225,5 +226,6 @@ void echo(stream<boost::asio::ip::tcp::socket>& ws,
ws.async_write(buffer.data(), boost::asio::use_future); ws.async_write(buffer.data(), boost::asio::use_future);
} }
//] //]
#endif
} // doc_ws_snippets } // doc_ws_snippets