You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/asioexec/test_completion_token.cpp
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -997,4 +997,25 @@ namespace {
997
997
CHECK(ctx.stopped());
998
998
}
999
999
1000
+
TEST_CASE(
1001
+
"Substitution into async_result<completion_token, ...>::initiate is SFINAE-friendly",
1002
+
"[asioexec][completion_token]") {
1003
+
asio_impl::io_context ctx;
1004
+
asio_impl::ip::tcp::socket socket(ctx);
1005
+
asio_impl::streambuf buf;
1006
+
// With a SFINAE-unfriendly async_result<...>::initiate the below line doesn't compile because there's a hard compilation error trying to consider the async_read overload for dynamic buffers
Copy file name to clipboardExpand all lines: test/asioexec/test_use_sender.cpp
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -250,4 +250,20 @@ namespace {
250
250
CHECK(ctx.stopped());
251
251
}
252
252
253
+
TEST_CASE(
254
+
"Substitution into async_result<use_sender, ...>::initiate is SFINAE-friendly",
255
+
"[asioexec][completion_token]") {
256
+
asio_impl::io_context ctx;
257
+
asio_impl::ip::tcp::socket socket(ctx);
258
+
asio_impl::streambuf buf;
259
+
// With a SFINAE-unfriendly async_result<...>::initiate the below line doesn't compile because there's a hard compilation error trying to consider the async_read overload for dynamic buffers
0 commit comments