File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 43564356\begin {note }
43574357The seemingly equivalent expression
43584358\tcode {shared_ptr<T>(static_cast<T*>(r.get()))}
4359- will eventually result in undefined behavior, attempting to delete the
4359+ can result in undefined behavior, attempting to delete the
43604360same object twice.
43614361\end {note }
43624362\end {itemdescr }
43934393\pnum
43944394\begin {note }
43954395The seemingly equivalent expression
4396- \tcode {shared_ptr<T>(dynamic_cast<T*>(r.get()))} will eventually result in
4396+ \tcode {shared_ptr<T>(dynamic_cast<T*>(r.get()))} can result in
43974397undefined behavior, attempting to delete the same object twice.
43984398\end {note }
43994399\end {itemdescr }
44224422\pnum
44234423\begin {note }
44244424The seemingly equivalent expression
4425- \tcode {shared_ptr<T>(const_cast<T*>(r.get()))} will eventually result in
4425+ \tcode {shared_ptr<T>(const_cast<T*>(r.get()))} can result in
44264426undefined behavior, attempting to delete the same object twice.
44274427\end {note }
44284428\end {itemdescr }
44514451\pnum
44524452\begin {note }
44534453The seemingly equivalent expression
4454- \tcode {shared_ptr<T>(reinterpret_cast<T*>(r.get()))} will eventually result in
4454+ \tcode {shared_ptr<T>(reinterpret_cast<T*>(r.get()))} can result in
44554455undefined behavior, attempting to delete the same object twice.
44564456\end {note }
44574457\end {itemdescr }
You can’t perform that action at this time.
0 commit comments