Hacker News new | ask | show | jobs
by tommiegannert 998 days ago
> For `constexpr` replace `std::string` with `const char *`.

Or string_view [1], since it's a literal.

[1] https://en.cppreference.com/w/cpp/string/basic_string_view