24 lines
1002 B
Markdown
24 lines
1002 B
Markdown
[conv.fctptr]
|
||
|
||
# 7 Expressions [[expr]](./#expr)
|
||
|
||
## 7.3 Standard conversions [[conv]](conv#fctptr)
|
||
|
||
### 7.3.14 Function pointer conversions [conv.fctptr]
|
||
|
||
[1](#1)
|
||
|
||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/expressions.tex#L1129)
|
||
|
||
A prvalue of type âpointer to noexcept functionâ
|
||
can be converted to a prvalue of type âpointer to functionâ[.](#1.sentence-1)
|
||
|
||
The result is a pointer to the function[.](#1.sentence-2)
|
||
|
||
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â[.](#1.sentence-3)
|
||
|
||
The result designates the member function[.](#1.sentence-4)
|
||
|
||
[*Example [1](#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*]
|