Skip to content

Build failing with Apple Clang 16 #435

@a-soll

Description

@a-soll
/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions