Skip to content

Commit

Permalink
fixed ebe6848 for io_context::executor.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 30, 2024
1 parent 06b2e92 commit be2b334
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/boost/cobalt/detail/fork.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ struct fork

bool outstanding_work() {return use_count != 0u;}

std::optional<executor> exec = nullptr;
bool wired_up() {return exec != nullptr;}
std::optional<executor> exec;
bool wired_up() {return exec.has_value();}

using executor_type = executor;
const executor_type & get_executor() const
{
BOOST_ASSERT(exec != nullptr);
BOOST_ASSERT(exec.has_value());
return *exec;
}

Expand Down

0 comments on commit be2b334

Please sign in to comment.