cppcheck 2.11 claims that in the following snippet the construction of a string_view via c_str is redundant.
std::string myLine; ... std::string_view myKey(myLine.data(), 13);
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11819
Log in to post a comment.
cppcheck 2.11 claims that in the following snippet the construction of a string_view via c_str is redundant.
Last edit: Gaetano Mendola 2023-07-06
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11819