Skip to content

Commit

Permalink
fix: Fix build with boost 1.86
Browse files Browse the repository at this point in the history
- Fix resolution of boost::asio::spawn overload.
  See chriskohlhoff/asio#1524
  • Loading branch information
oscarwcl committed Nov 1, 2024
1 parent dec1a45 commit 889966d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/accelerator/ogl/util/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ struct device::impl : public std::enable_shared_from_this<impl>

auto task = task_type(std::forward<Func>(func));
auto future = task.get_future();
boost::asio::spawn(service_, std::move(task));
boost::asio::spawn(service_, std::move(task), [](std::exception_ptr e) {
if (e) std::rethrow_exception(e);
});
return future;
}

Expand Down

0 comments on commit 889966d

Please sign in to comment.