cppdemo: fix clang warning