Created on 1999-09-16.00:00:00 last changed 210 months ago
The descriptions of explicit (8.2.9 [expr.static.cast] paragraph 9) and implicit (7.12 [conv.mem] paragraph 2) pointer-to-member conversions differ in two significant ways:
(This situation cannot arise in an implicit pointer-to-member conversion where the source value is something like &X::f, since you can only implicitly convert from pointer-to-base-member to pointer-to-derived-member. However, if the source value is the result of an explicit "up-cast," the target type of the conversion might still not contain the member referred to by the source value.)
The first difference seems like an oversight. It is not clear whether the latter difference is intentional or not.
(See also issue 794.)
|2003-04-25 00:00:00||admin||set||status: open -> drafting|