constexpr keeps getting more and more powerful with each release:
C++ constexpr parlor tricks: How can I obtain the length of a string at compile time?
by Raymond Chen
From the article:
Say you want to obtain, at compile time, the length of a compile-time string constant. The problem is that the strlen function is not constexpr...
Add a Comment
Comments are closed.