boostorg / boostorg/asio

Build failing with Apple Clang 16

Open
#435 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.6k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

```
/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())
^
:0: note: in instantiation of default function argument expression for 'open' 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.