Archive pour mai 2025
Mid-point and linear interpolation done right
Posté par Olivier dans Trucs & Astuces le 22 mai 2025
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++ […]
The hidden cost of std::ranges
Posté par Olivier dans Trucs & Astuces le 22 mai 2025
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 […]
Filets de poulet gratinés à la sauce tomates (4P)
ingrédients préparation