Our team is working with a 10+ years old C++ code base and recently switched to a C++17 compiler. So we are looking for ways to modernize our code. In a conference talk on YouTube I heard the suggestion, to replace const char*
global strings with constexpr string_view
.
Since we got quite a number of such const char*
global string constants in our code, I want to ask if there are any gotchas or potential issues we need to be aware of?