Closed N-Dekker closed 5 months ago
By the way, I noticed that GoogleTest has a few macro's specifically for string comparison, avoiding the need to manually convert the arguments to std::string
or std::string_view
. Might be worth considering 😃
GoogleTest has a few macro's specifically for string comparison
Make a competing PR using those? 😄
/azp run ITK.macOS
Note that std::string_view
only provides read-only to the data, so in that sense, it's similar to const std::string &
.
Prevented potential static analysis warnings, like Clang-Tidy:
And JetBrains ReSharper:
Note that
std::string_view
is more lightweight thanstd::string
.