Advertisement
Guest User

Compilation error: std::execution example

a guest
Apr 24th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. satacker@ubuntu:~/wg21_p2300_std_execution/build$ clang++-12 -std=c++2b ../examples/schedulers/is.cpp -I../include/ -fcoroutines-ts -lpthread -stdlib=libc++
  2. In file included from ../examples/schedulers/is.cpp:1:
  3. In file included from ../examples/schedulers/inline_scheduler.hpp:18:
  4. ../include/execution.hpp:631:18: error: value of type 'tag_invoke_result_t<std::execution::__scheduler_queries::__impl::get_forward_progress_guarantee_t, const example::inline_scheduler &>' (aka 'std::execution::forward_progress_guarantee') is not contextually convertible to 'bool'
  5. return tag_invoke(get_forward_progress_guarantee_t{}, std::as_const(__t)) ? true : false;
  6. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. ../examples/schedulers/is.cpp:8:58: note: in instantiation of function template specialization 'std::execution::__scheduler_queries::__impl::get_forward_progress_guarantee_t::operator()<example::inline_scheduler &>' requested here
  8. auto k = std::execution::get_forward_progress_guarantee(s);
  9. ^
  10. 1 error generated.
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement