Quick Q: What’s the difference between constexpr and const?—StackOverflow

Save to:
Instapaper Pocket Readability

C++11's const and constexpr have somewhat different purposes, but similar names. Hence the natural question:

Difference between constexpr and const

What's the difference between constexpr and const?


  • When can I use only one of them?
  • When can I use both and how should I choose one?

Continue reading...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.