Archive pour décembre 2025
C++ Concept to match pointers and alikes
Posté par Olivier dans Trucs & Astuces le 11 décembre 2025
To fix an issue raised by our static checker in our of our templates, I had to develop a concept that would match pointers (raw pointers and smart pointers) but not C-arrays. Let’s consider the following variables and test code: The initial implementation would look like But this wouldn’t work as one can use array […]