jeudi 20 avril 2017

Use of constexpr and const in C++

I have seen declaring a variable as constant in C++ on Quora.

static constexpr const int& r = 3;

So, Why constexpr and const used in single statement? What is the purpose of that statement?

Aucun commentaire:

Enregistrer un commentaire