Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing with Apple Clang 16 #435

Open
a-soll opened this issue Sep 17, 2024 · 1 comment
Open

Build failing with Apple Clang 16 #435

a-soll opened this issue Sep 17, 2024 · 1 comment

Comments

@a-soll
Copy link

a-soll commented Sep 17, 2024

/opt/homebrew/include/boost/asio/basic_socket_acceptor.hpp:473:45: error: no matching constructor for initialization of 'protocol_type' (aka 'boost::asio::ip::tcp')
  void open(const protocol_type& protocol = protocol_type())
                                            ^
<unknown>:0: note: in instantiation of default function argument expression for 'open<boost::asio::ip::tcp, boost::asio::any_io_executor>' required here
/opt/homebrew/include/boost/asio/ip/tcp.hpp:143:12: note: candidate constructor not viable: requires single argument 'protocol_family', but no arguments were provided
  explicit tcp(int protocol_family) noexcept
           ^
/opt/homebrew/include/boost/asio/ip/tcp.hpp:46:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
class tcp
      ^
/opt/homebrew/include/boost/asio/ip/tcp.hpp:46:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided
class tcp

Updated clang today and I'm getting this issue when building. Is there a workaround or anything in the meantime?

@mclow mclow transferred this issue from boostorg/boost Sep 17, 2024
@a-soll
Copy link
Author

a-soll commented Sep 19, 2024

I added a default constructor and the issue went away, but I'm not sure if that's a good idea or not. Haven't been able to test the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant