mercredi 5 juillet 2023

What is the difference between C11's constexpr and C23's [[reproducible]]?

C++11 added the constexpr keyword which can be added to functions to specify constant behavior.

C23 added what seems to be identical functionality in the form of the [[reproducible]] tag.

How are these two mechanisms different?

Aucun commentaire:

Enregistrer un commentaire