chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.72k stars 1.19k forks source link

clang "unknown class name 'nested_exception'; did you mean 'bad_exception'" #1381

Open oj-learn opened 8 months ago

oj-learn commented 8 months ago

clang-18 ubuntu 22.04

error: engine/asio/execution/receiver_invocation_error.hpp:31:17: error: unknown class name 'nested_exception'; did you mean 'bad_exception'? 31 | , public std::nested_exception | ^~~~ | bad_exception /usr/include/c++/v1/__exception/exception.h:82:33: note: 'bad_exception' declared here 82 | class _LIBCPP_EXPORTED_FROM_ABI bad_exception : public exception { | ^ In file included from main_test/main_asio.cpp:1: In file included from engine/asio/ip/tcp.hpp:19: In file included from engine/asio/basic_socket_acceptor.hpp:19: In file included from engine/asio/any_io_executor.hpp:22: In file included from engine/asio/execution.hpp:18: In file included from engine/asio/execution/allocator.hpp:20: In file included from engine/asio/execution/executor.hpp:25: In file included from engine/asio/execution/execute.hpp:23: In file included from engine/asio/execution/detail/as_invocable.hpp:20: In file included from engine/asio/detail/memory.hpp:21: