Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Presentations/10-Conversions/conversions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@
никаких гарантий.

\begin{myinplacelisting}[minted language=cpp]
typedef void(*t_func)(); // alias for type of pointer to function
typedef void(*t_func)(); // alias for type of pointer
// to function
int x {};
t_func f1 = static_cast<t_func>(&x); // compilation error
t_func f2 = reinterpret_cast<t_func>(&x);
Expand Down