Archive pour mai 2025

Mid-point and linear interpolation done right

How many times did we write code like: Although this code is correct, it may suffer from overflows. The typical way to avoid those is to cast to a wider type. But how can you do this when the start and stop values are already using the largest integer type (eg. int64_t) ? The C++ […]

,

Pas de commentaire

The hidden cost of std::ranges

At work, we have recently adopted some commercial static checker to hunt bugs in our codebase. The tool does not only identify bugs and security vulnerabilities. It is also advising you on opportunities to modernize your code to use the latest and greatest of the C++ language and of its standard library. One of the […]

,

Pas de commentaire

Filets de poulet gratinés à la sauce tomates (4P)

ingrédients préparation

Pas de commentaire