mercredi 16 mars 2022

Why can't a constexpr "variable" be seen only by a capturing lambda?

Why can't a constexpr "variable" be seen only by a capturing lambda ? For me the a constexpr "variable" should have the same meaning as a static const "variable"; and the latter one can be seen inside a lambda without any capturing.

Aucun commentaire:

Enregistrer un commentaire