It is always a treat to attend a talk by Klaus Iglberger!

Speaking about safety issues in C++ and that we have all the tools and language constructs. If only developers would actually use them. But many are stuck using outdated thinking..

It's a mindset problem. It's a people problem..

(and no, using Rust isn't just the solution!)

#cpp #meetingcpp #dev @meetingcpp

constexpr all the things! Since the evaluation of a constant expression never results in an erroneous behavior (EB, C++26)! (But use constexpr since C++11)

This was mentioned by many at the conference, not to forget: @DanielaKEngert, Mikhail Svetkin, and others.

@meetingcpp #cpp #cpp26 #cpp11 #meetingcpp #dev #undefined_behavior #ub #erroneous_behavior #eb