File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 49624962\indextext {cast!undefined pointer-to-function}%
49634963A function pointer can be explicitly converted
49644964to a function pointer of a different type.
4965+ The function pointer value is unchanged by the conversion.
49654966\indextext {function call!undefined}%
49664967\begin {note }
49674968The effect of calling a function through a pointer to a function
4968- type\iref {dcl.fct } that is not the same as the type used in the
4969+ type\iref {dcl.fct } that is not call-compatible with the type used in the
49694970definition of the function is undefined\iref {expr.call }.
49704971\end {note }
4971- Except that converting
4972- a prvalue of type `` pointer to \tcode {T1}'' to the type `` pointer to
4973- \tcode {T2}'' (where \tcode {T1} and \tcode {T2} are function types) and
4974- back to its original type yields the original pointer value, the result
4975- of such a pointer conversion is unspecified.
49764972
49774973\pnum
49784974An object pointer
You can’t perform that action at this time.
0 commit comments