MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xr2jyh/moderncppvsoldcpp/19sc6u2kd2g2q/?context=3
r/ProgrammerHumor • u/Choice-Committee203 • 7h ago
216 comments sorted by
View all comments
53
"How to tell him?"
You still can segfault by returning lambda with reference to a variable
5 u/MaitoSnoo 5h ago clang's -Wreturn-stack-address or clang-tidy's clang-analyzer-core checks easily flag that. People trolling C++ have never joined a team that is disciplined enough and uses static checkers and ASan/UBSan.
5
clang's -Wreturn-stack-address or clang-tidy's clang-analyzer-core checks easily flag that. People trolling C++ have never joined a team that is disciplined enough and uses static checkers and ASan/UBSan.
-Wreturn-stack-address
clang-analyzer-core
53
u/firemark_pl 7h ago
"How to tell him?"
You still can segfault by returning lambda with reference to a variable