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

[review] revisit/document the rationale for qualified_parent_class_of design #112

Open
badair opened this issue Apr 9, 2017 · 1 comment
Labels

Comments

@badair
Copy link
Collaborator

badair commented Apr 9, 2017

from http://lists.boost.org/Archives/boost/2017/04/234173.php

@ldionne
Copy link
Member

ldionne commented Apr 17, 2017

Also seen in https://lists.boost.org/Archives/boost/2017/04/234333.php:

  1. Why does qualified_parent_class_of return a ref qualified type even for unqualified PMFs? This is again surprising, I would expect qualified_parent_class_of_t<void (foo::*)()> to return foo, not foo&.
  2. Why does qualified_parent_class_of always return a const& qualified type for PMDs? I can imagine that this would be quite an annoyance if the user wants to apply custom qualifiers to it for one reason or another, especially rvalue reference, which would be silently collapsed away by the lvalue reference. The safest choice IMO would be to return an unqualified type.

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

No branches or pull requests

2 participants