This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

23
cppdraft/conv/fctptr.md Normal file
View File

@@ -0,0 +1,23 @@
[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*]