dimanche 7 août 2016

How to define a pointer pointing to a constexpr variable?

In C++ Primer 5th, it says that

constexpr imposes a top-level const on the objects it defines.

So how I can I declare a pointer with a constexpr specifier imposing a low-level const, i.e. a pointer pointing to a constexpr object?

Aucun commentaire:

Enregistrer un commentaire