From ac1241e75b726079e7138c74fa7227a73e1bbf4c Mon Sep 17 00:00:00 2001 From: Adam Emerson Date: Thu, 12 Dec 2024 16:11:32 -0500 Subject: [PATCH] test/neorados: Use `asio::post` free function Signed-off-by: Adam Emerson --- src/test/neorados/completions.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/neorados/completions.cc b/src/test/neorados/completions.cc index b6286130bbea0..a4684e4dc51c5 100644 --- a/src/test/neorados/completions.cc +++ b/src/test/neorados/completions.cc @@ -1,4 +1,5 @@ #include +#include constexpr int max_completions = 10'000'000; int completed = 0; @@ -7,11 +8,11 @@ boost::asio::io_context c; void nested_cb() { if (++completed < max_completions) - c.post(&nested_cb); + boost::asio::post(c, &nested_cb); } int main(void) { - c.post(&nested_cb); + boost::asio::post(c, &nested_cb); c.run(); assert(completed == max_completions); return 0; -- 2.39.5