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

misbehaves in presence of void operator&() #15

Open
zygoloid opened this issue Jun 6, 2014 · 0 comments
Open

misbehaves in presence of void operator&() #15

zygoloid opened this issue Jun 6, 2014 · 0 comments

Comments

@zygoloid
Copy link

zygoloid commented Jun 6, 2014

196:
template <class X, size_t S = sizeof(std::declval< X&>().operator&()) >

This is not selected if operator& exists but returns void. It's also not selected if the call to operator& is ambiguous or is deleted.

(Ultimately, the right fix here is to make std::addressof be constexpr; in Clang, you can implement constexpr_addressof using __builtin_addressof.)

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