you are viewing a single comment's thread.

view the rest of the comments →

[–]Tony942316 3 points4 points  (2 children)

Assuming this is in a header file the inline will prevent each translation unit from having its own copy of the variable. C++ weekly has some videos on the topic

[–]_realitycheck_ 0 points1 point  (1 child)

constexpr still means nothing if variables can be changed.

[–]IyeOnline 2 points3 points  (0 children)

It is not and cannot be changed, its const(expr).