Skip to content

Commit 0fe6d67

Browse files
authored
[ub:expr.static.cast.does.not.contain.original.member] Adjust linebreak in example (#9205)
1 parent ed612bd commit 0fe6d67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/ub.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@
977977

978978
int main() {
979979
char D::*p1 = &D::c;
980-
char B::*p2 = static_cast<char B::*>(p1); // undefined behavior, \tcode{B} does not contain the original member \tcode{c}
980+
char B::*p2 = static_cast<char B::*>(p1); // undefined behavior, \tcode{B} does not contain the
981+
// original member \tcode{c}
981982
}
982983
\end{codeblock}
983984
\end{example}

0 commit comments

Comments
 (0)