Command used: cppcheck --language=c++ --std=c++26 --enable=warning,style,performance,portability --template=gcc --check-level=exhaustive
Message: PoplarSort.hpp:57:31: note: Unused private function: 'Forest::_bsf1'
But it is effectively used at line 65 (and method pop() is effectively called).
The false positive is caused by the use of C++26 contract assertions. A workaround might be appending -Dpre(x)= to the command line.
-Dpre(x)=
Log in to post a comment.
Command used: cppcheck --language=c++ --std=c++26 --enable=warning,style,performance,portability --template=gcc --check-level=exhaustive
Message: PoplarSort.hpp:57:31: note: Unused private function: 'Forest::_bsf1'
But it is effectively used at line 65 (and method pop() is effectively called).
The false positive is caused by the use of C++26 contract assertions. A workaround might be appending
-Dpre(x)=to the command line.