callable_traits
callable_traits copied to clipboard
[review] revisit/document the rationale for qualified_parent_class_of design
from http://lists.boost.org/Archives/boost/2017/04/234173.php
Also seen in https://lists.boost.org/Archives/boost/2017/04/234333.php:
- Why does
qualified_parent_class_ofreturn a ref qualified type even for unqualified PMFs? This is again surprising, I would expectqualified_parent_class_of_t<void (foo::*)()>to returnfoo, notfoo&.- Why does
qualified_parent_class_ofalways return aconst&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.