Is there a difference between the following definitions?

const     double PI = 3.141592653589793;
constexpr double PI = 3.141592653589793;

If not, which style is preferred in C++11?

5 Answers
5

Leave a Reply

Your email address will not be published. Required fields are marked *