Open Maritsu opened 9 months ago
I'm getting a really long compilation error that starts with cannot convert ‘asio::thread_pool::basic_executor_type<std::allocator<void>, 0>’ to ‘const boost::asio::thread_pool::executor_type&’ in clang-unformat/standalone/application.cpp:402:13.
cannot convert ‘asio::thread_pool::basic_executor_type<std::allocator<void>, 0>’ to ‘const boost::asio::thread_pool::executor_type&’
clang-unformat/standalone/application.cpp:402:13
cmake --build . --target clang-unformat -j8
[ 97%] Building CXX object CMakeFiles/clang-unformat.dir/standalone/main.cpp.o /home/bit/temp/clang-unformat/standalone/application.cpp: In member function ‘void application::clang_format_local_search()’: /home/bit/temp/clang-unformat/standalone/application.cpp:402:13: error: cannot convert ‘asio::thread_pool::basic_executor_type<std::allocator<void>, 0>’ to ‘const boost::asio::thread_pool::executor_type&’ {aka ‘const boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>&’} 402 | ex, | ^~ | | | asio::thread_pool::basic_executor_type<std::allocator<void>, 0> /home/bit/temp/clang-unformat/standalone/application.cpp:180:52: note: initializing argument 1 of ‘void application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)’ 180 | const boost::asio::thread_pool::executor_type &ex, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /usr/include/asio/detail/descriptor_read_op.hpp:29, from /usr/include/asio/detail/reactive_descriptor_service.hpp:33, from /usr/include/asio/basic_readable_pipe.hpp:38, from /usr/include/asio.hpp:36, from /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/config/asio_include.h:56, from /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/executor/inline_executor.h:11, from /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:11, from /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures.h:66, from /home/bit/temp/clang-unformat/standalone/application.cpp:16: /usr/include/asio/dispatch.hpp: In instantiation of ‘auto asio::dispatch(const Executor&, NullaryToken&&, typename constraint<(execution::is_executor<T>::value || is_executor<Executor>::value)>::type) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; NullaryToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; typename constraint<(execution::is_executor<T>::value || is_executor<Executor>::value)>::type = int]’: /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:220:35: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::detail::async_future_scheduler::operator()(futures::detail::schedule_future_policy, const Executor&, Function&&, Args&& ...) const [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; futures::detail::async_result_of_t<Function, Args ...> = futures::basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:315:39: required from ‘decltype(auto) futures::async(launch, const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:356:21: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::async(const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; detail::async_result_of_t<Function, Args ...> = basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/standalone/application.cpp:217:57: required from here /usr/include/asio/dispatch.hpp:158:46: error: call of overloaded ‘async_initiate<futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >, void()>(asio::detail::initiate_dispatch_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >, futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >&)’ is ambiguous 158 | return async_initiate<NullaryToken, void()>( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 159 | detail::initiate_dispatch_with_executor<Executor>(ex), token); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/asio/detail/handler_type_requirements.hpp:53, from /usr/include/asio/impl/execution_context.hpp:18, from /usr/include/asio/execution_context.hpp:407, from /usr/include/asio/detail/scheduler.hpp:21, from /usr/include/asio/system_context.hpp:19, from /usr/include/asio/impl/system_executor.hpp:21, from /usr/include/asio/system_executor.hpp:669, from /usr/include/asio/associated_executor.hpp:24, from /usr/include/asio/any_completion_handler.hpp:28, from /usr/include/asio.hpp:19: /usr/include/asio/async_result.hpp:890:1: note: candidate: ‘typename asio::constraint<asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = detail::initiate_dispatch_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 890 | async_initiate(ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ In file included from /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/detail/handler_type_requirements.hpp:53, from /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/impl/execution_context.hpp:18, from /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/execution_context.hpp:409, from /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/detail/scheduler.hpp:21, from /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/thread_pool.hpp:20, from /home/bit/temp/clang-unformat/standalone/application.hpp:13, from /home/bit/temp/clang-unformat/standalone/application.cpp:8: /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/async_result.hpp:891:1: note: candidate: ‘typename boost::asio::constraint<boost::asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (boost::asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type boost::asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = asio::detail::initiate_dispatch_with_executor<thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 891 | async_initiate(BOOST_ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ In file included from /usr/include/asio.hpp:73: /usr/include/asio/defer.hpp: In instantiation of ‘auto asio::defer(const Executor&, NullaryToken&&, typename constraint<((execution::is_executor<T>::value && can_require<Executor, execution::detail::blocking::never_t<0> >::value) || is_executor<Executor>::value)>::type) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; NullaryToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; typename constraint<((execution::is_executor<T>::value && can_require<Executor, execution::detail::blocking::never_t<0> >::value) || is_executor<Executor>::value)>::type = int]’: /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:223:32: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::detail::async_future_scheduler::operator()(futures::detail::schedule_future_policy, const Executor&, Function&&, Args&& ...) const [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; futures::detail::async_result_of_t<Function, Args ...> = futures::basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:315:39: required from ‘decltype(auto) futures::async(launch, const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:356:21: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::async(const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; detail::async_result_of_t<Function, Args ...> = basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/standalone/application.cpp:217:57: required from here /usr/include/asio/defer.hpp:179:46: error: call of overloaded ‘async_initiate<futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >, void()>(asio::detail::initiate_defer_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >, futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >&)’ is ambiguous 179 | return async_initiate<NullaryToken, void()>( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 180 | detail::initiate_defer_with_executor<Executor>(ex), token); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/asio/async_result.hpp:890:1: note: candidate: ‘typename asio::constraint<asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = detail::initiate_defer_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 890 | async_initiate(ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/async_result.hpp:891:1: note: candidate: ‘typename boost::asio::constraint<boost::asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (boost::asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type boost::asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = asio::detail::initiate_defer_with_executor<thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 891 | async_initiate(BOOST_ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ In file included from /usr/include/asio/basic_socket.hpp:28, from /usr/include/asio/basic_datagram_socket.hpp:20, from /usr/include/asio.hpp:30: /usr/include/asio/post.hpp: In instantiation of ‘auto asio::post(const Executor&, NullaryToken&&, typename constraint<((execution::is_executor<T>::value && can_require<Executor, execution::detail::blocking::never_t<0> >::value) || is_executor<Executor>::value)>::type) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; NullaryToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; typename constraint<((execution::is_executor<T>::value && can_require<Executor, execution::detail::blocking::never_t<0> >::value) || is_executor<Executor>::value)>::type = int]’: /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:226:31: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::detail::async_future_scheduler::operator()(futures::detail::schedule_future_policy, const Executor&, Function&&, Args&& ...) const [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; futures::detail::async_result_of_t<Function, Args ...> = futures::basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:315:39: required from ‘decltype(auto) futures::async(launch, const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0]’ /home/bit/temp/clang-unformat/build/_deps/futures-src/source/futures/futures/async.h:356:21: required from ‘futures::detail::async_result_of_t<Function, Args ...> futures::async(const Executor&, Function&&, Args&& ...) [with Executor = boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0>; Function = application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>; Args = {}; typename std::enable_if<is_valid_async_input_v<Executor, Function, Args ...>, int>::type <anonymous> = 0; detail::async_result_of_t<Function, Args ...> = basic_future<long unsigned int, std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, false> >]’ /home/bit/temp/clang-unformat/standalone/application.cpp:217:57: required from here /usr/include/asio/post.hpp:175:46: error: call of overloaded ‘async_initiate<futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >, void()>(asio::detail::initiate_post_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >, futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >&)’ is ambiguous 175 | return async_initiate<NullaryToken, void()>( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 176 | detail::initiate_post_with_executor<Executor>(ex), token); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/asio/async_result.hpp:890:1: note: candidate: ‘typename asio::constraint<asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = detail::initiate_post_with_executor<boost::asio::thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 890 | async_initiate(ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ /home/bit/temp/clang-unformat/build/_deps/boost-src/libs/asio/include/boost/asio/async_result.hpp:891:1: note: candidate: ‘typename boost::asio::constraint<boost::asio::detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (boost::asio::async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type boost::asio::async_initiate(Initiation&&, CompletionToken&, Args&& ...) [with CompletionToken = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >; Signatures = {void()}; Initiation = asio::detail::initiate_post_with_executor<thread_pool::basic_executor_type<std::allocator<void>, 0> >; Args = {}; typename constraint<detail::async_result_has_initiate_memfn<CompletionToken, Signatures>::value, decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...))>::type = void; decltype (async_result<typename std::decay<_Ex>::type, Signatures ...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), (declval<Args&&>)()...)) = void; typename std::decay<_Ex>::type = futures::detail::async_future_scheduler::promise_fulfill_handle<futures::detail::empty_value_type, application::evaluate_option_values(const boost::asio::thread_pool::executor_type&, std::size_t&, std::size_t&, const std::string&, const clang_format_possible_values&)::<lambda()>, futures::packaged_task<long unsigned int()> >]’ 891 | async_initiate(BOOST_ASIO_MOVE_ARG(Initiation) initiation, | ^~~~~~~~~~~~~~ make[3]: *** [CMakeFiles/clang-unformat.dir/build.make:76: CMakeFiles/clang-unformat.dir/standalone/application.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/Makefile2:1199: CMakeFiles/clang-unformat.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:1206: CMakeFiles/clang-unformat.dir/rule] Error 2 make: *** [Makefile:169: clang-unformat] Error 2
I'm getting a really long compilation error that starts with
cannot convert ‘asio::thread_pool::basic_executor_type<std::allocator<void>, 0>’ to ‘const boost::asio::thread_pool::executor_type&’
inclang-unformat/standalone/application.cpp:402:13
.Build logs:
cmake --build . --target clang-unformat -j8
: