#define CATCH_CONFIG_MAIN#include"thirdparty/catch2/catch.hpp"#include<fmt/format.h>usingnamespacefmt::literals;TEST_CASE("cppcheck: (error) Boolean value assigned to pointer."){constautostr=fmt::format("{named}","named"_a=true);}
This is a snippet from an unit-test (using https://github.com/fmtlib/fmt) and cppcheck 1.88 marks the single line in the test case as an error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a snippet from an unit-test (using https://github.com/fmtlib/fmt) and cppcheck 1.88 marks the single line in the test case as an error.