c++ - Computing length of a C string at compile time. Is this really a constexpr? - Stack Overflow
I'm trying to compute the length of a string literal at compile time. To do so I'm using following code: #include int constexpr length(const char* str) { return *str ? 1 ......