Files
2025-10-25 03:02:53 +03:00

1002 B
Raw Permalink Blame History

[conv.fctptr]

7 Expressions [expr]

7.3 Standard conversions [conv]

7.3.14 Function pointer conversions [conv.fctptr]

1

#

A prvalue of type “pointer to noexcept function” can be converted to a prvalue of type “pointer to function”.

The result is a pointer to the function.

A prvalue of type “pointer to member of type noexcept function” can be converted to a prvalue of type “pointer to member of type function”.

The result designates the member function.

[Example 1: void (*p)();void (**pp)() noexcept = &p; // error: cannot convert to pointer to noexcept functionstruct S { typedef void (*p)(); operator p(); };void (*q)() noexcept = S(); // error: cannot convert to pointer to noexcept function — end example]