Posts

Most Valuable std::variant (Part 1)

Most tutorials introduce std::variant as a way to store unrelated types in one variable. Ivan Čukić shows its far more valuable use: modelling program states so that invalid states can't be represented, RAII works again, and hidden coupling between members disappears.

The Problem with C++ Safety (Part 2): Modern C++ Is a Mindset, Not a Standard

In the first part, we saw how hard it is to be certain that loop-based C++ code is correct. Now Klaus presents the modern solution, a single algorithm call that is correct by inspection, and explains why the real problem in our community is an educational one, made worse by AI tools that keep generating classic C++.

The Problem with C++ Safety (Part 1): Why “It Works” Isn’t Good Enough

Rainer Grimm’s blog continues. In this first article of a new series, Klaus Iglberger looks at why C++ is called memory unsafe and argues that the real problem isn’t the language itself, but how we write and teach it.
cemetery

C++ Core Guidelines: Lifetime Safety And Checking the Rules

/
The lifetime safety profile in the C++ core guidelines boils down to one issue: don't dereference a possible…
industrsy

C++ Core Guidelines: Bounds Safety

/
Today's post concerns the second C++ Core Guidelines: Bounds Safety profile. The goal of the profile…
abseiling 1842180 1280

C++ Core Guidelines: Type Safety by Design

/
What does that mean: type safety by design. Type safety by design just means that you always initialize…
checklist 1295319 1280

C++ Core Guidelines: Type Safety

/
The C++ core guidelines support three profiles: type safety, bounds safety, and lifetime safety. Thanks…
checklist 911840 1280

C++ Core Guidelines: Profiles

/
Informally, profiles are a subset of rules of the C++ core guidelines for specific concerns such as type…