News for hackers. Stuff that matters.
Re:C++'s `Noexcept` Can (Sometimes) Help (Or Hurt) Performance by gpderetta on Tuesday August 06, 2024 @06:10AM (#41169346)
You very likely can't always answer the question "will this function throw?", but it should be relatively easy to identify the subset of function that recursively call functions that are guaranteed not to throw. That's only a subset of all non-throwing functions of course.
Re:C++'s `Noexcept` Can (Sometimes) Help (Or Hurt) Performance by Arech on Tuesday August 06, 2024 @12:36PM (#41172484)
Yes, my mistake was in confusion a run-time question "will it throw?" with "can it throw in theory?". The latter if I'm not mistaken again only requires a throw statement somewhere in a non-dead code, which is totally possible to find out for a code compiler could see.