you can also do compile time strlen(), if you are ok with goofy variadic templates
Or you use what the C++ standard library has to offer.
std::string_view(ptr).length(); or std::string(ptr).length(); or std::char_traits<char>::length(ptr); all work at compile time.