Re:The Sad Truth About C++ Copy Elision
by gumby on Saturday April 03, 2021 @03:09PM
(#26683793)
Both of your examples hold for C, and for the same reasons. For example trying to take the address of `errno` is UB in C as implementations are free to implement it as a macro (and almost all do).
[ Parent
| on HN ]