cppcheck (version 2.19, on commit 633b4e45c7e036a73da18a4e0340896edfa92f35) gives an incorrectStringBooleanError for the following program, even though there is a string_view overload which is correctly chosen when I run this (https://godbolt.org/z/fjjGf4s7n).
Hi,
cppcheck (version 2.19, on commit 633b4e45c7e036a73da18a4e0340896edfa92f35) gives an incorrectStringBooleanError for the following program, even though there is a string_view overload which is correctly chosen when I run this (https://godbolt.org/z/fjjGf4s7n).
I'm running:
and I'm getting:
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14058