Liste des Groupes | Revenir à cl c |
In my view , for this sample constexpr generates noise. It also can make the compilation slower, otherwise, why not everything constexpr by defaul?One more sample of NOISE of constexpr from the same real source.
I still didn't find a useful usage for constexpr that would compensate the mess created with const, constexpr. I already saw ( I don't have it now ) proposals to make const more like constexpr in C. In C++ const is already a constant expression!
The justification for C was VLA. They should consider VLA not VLA if it has a constant expression. In other words, better break this than create a mess.
#define makes the job of constexpr.
Les messages affichés proviennent d'usenet.