When template row is commented then cppcheck finds the issue:
"C:\Program Files\Cppcheck\cppcheck.exe" --enable=style main.cpp
Checking main.cpp ... [main.cpp:12]: (error) Using 'memset' on class that contains a 'std::string'.
When template is uncommented - it is blind.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It did not work until Cppcheck 1.83 but it works with the current development code. Not sure which change/fix exactly made this working now.
So i would suggest to verify that it still works with 1.84 when it is released.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When template row is commented then cppcheck finds the issue:
"C:\Program Files\Cppcheck\cppcheck.exe" --enable=style main.cpp
Checking main.cpp ...
[main.cpp:12]: (error) Using 'memset' on class that contains a 'std::string'.
When template is uncommented - it is blind.
It did not work until Cppcheck 1.83 but it works with the current development code. Not sure which change/fix exactly made this working now.
So i would suggest to verify that it still works with 1.84 when it is released.