C++11's const
and constexpr
have somewhat different purposes, but similar names. Hence the natural question:
Difference between
constexpr
andconst
What's the difference between
constexpr
andconst
?
- When can I use only one of them?
- When can I use both and how should I choose one?
Add a Comment
Comments are closed.