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 fails on macOS 10.12 (Sierra) with LLVM Clang 8.0.0 #114

Open
cstrotm opened this issue Jan 5, 2017 · 1 comment
Open

Build fails on macOS 10.12 (Sierra) with LLVM Clang 8.0.0 #114

cstrotm opened this issue Jan 5, 2017 · 1 comment
Assignees

Comments

@cstrotm
Copy link
Contributor

cstrotm commented Jan 5, 2017

In file included from session.cc:28:
In file included from ../../../ext/asio/asio.hpp:49:
In file included from ../../../ext/asio/asio/ip/basic_resolver.hpp:23:
In file included from ../../../ext/asio/asio/ip/basic_resolver_query.hpp:21:
../../../ext/asio/asio/ip/resolver_query_base.hpp:114:3: error: all paths through this function will call itself
[-Werror,-Winfinite-recursion]
{
^
1 error generated.

@cstrotm
Copy link
Contributor Author

cstrotm commented Jan 5, 2017

file is copied from an older BOOST version.

Current version of the file from BOOST is at
http://www.boost.org/doc/libs/1_63_0/boost/asio/ip/resolver_query_base.hpp

fix:

friend flags operator~(flags x)
{
return static_cast(~static_cast(x));
}

@cstrotm cstrotm self-assigned this Jan 5, 2017
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