mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Disable bind_continuation
This commit is contained in:
@@ -14,7 +14,15 @@
|
||||
[heading Boost 1.70]
|
||||
[/ includes up to version 209]
|
||||
[/
|
||||
* Use `beast::tcp_socket` instead of `boost::asio::ip::tcp::socket`!
|
||||
|
||||
* [phrase library..[@/libs/beast/ Beast]:]
|
||||
* Example websocket-chat-multi
|
||||
* New CppCon 2018 [@https://www.boost.org/doc/libs/master/libs/beast/doc/html/beast/examples.html#beast.examples.cppcon_2018 websocket chat example] and [@https://www.youtube.com/watch?v=7FQwAjELMek presentation video].
|
||||
* For a complete list of changes, please view the official
|
||||
[@/libs/beast/doc/html/beast/release_notes.html Release Notes].
|
||||
|
||||
|
||||
* Use `beast::tcp_stream` instead of `boost::asio::ip::tcp::socket`!
|
||||
* subscribe to this GitHub issue to be informed!
|
||||
* we need testers!
|
||||
* star the repo!
|
||||
@@ -29,6 +37,8 @@ Enlarged scope
|
||||
- New websocket-chat-multi example
|
||||
]
|
||||
|
||||
[/-----------------------------------------------------------------------------]
|
||||
|
||||
[tip
|
||||
The namespace alias `net` is used throughout for `boost::asio`.
|
||||
]
|
||||
|
@@ -21,6 +21,7 @@ namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
#if 0
|
||||
/** Mark a completion handler as a continuation.
|
||||
|
||||
This function wraps a completion handler to associate it with an
|
||||
@@ -86,6 +87,19 @@ bind_continuation(
|
||||
detail::remap_post_to_defer<Executor>(ex),
|
||||
std::forward<CompletionHandler>(handler));
|
||||
}
|
||||
#else
|
||||
// VFALCO I turned these off at the last minute because they cause
|
||||
// the completion handler to be moved before the initiating
|
||||
// function is invoked rather than after, which is a foot-gun.
|
||||
//
|
||||
// REMINDER: Uncomment the tests when this is put back
|
||||
template<class F>
|
||||
F&&
|
||||
bind_continuation(F&& f)
|
||||
{
|
||||
return std::forward<F>(f);
|
||||
}
|
||||
#endif
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
|
@@ -10,6 +10,8 @@
|
||||
// Test that header file is self-contained.
|
||||
#include <boost/beast/core/detail/bind_continuation.hpp>
|
||||
|
||||
#if 0
|
||||
|
||||
#include "test_executor.hpp"
|
||||
#include "test_handler.hpp"
|
||||
|
||||
@@ -186,3 +188,5 @@ BEAST_DEFINE_TESTSUITE(beast,core,bind_continuation);
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user