[test.cpp:7]: (error) Using 'memset' on struct that contains a virtual method is unsafe, because constructor, destructor and copy operator calls are omitted. These are necessary for this non-POD type to ensure that a valid object is created.
I have no error for each template, and no information for find the wrong template used :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[test.cpp:7]: (error) Using 'memset' on struct that contains a virtual method is unsafe, because constructor, destructor and copy operator calls are omitted. These are necessary for this non-POD type to ensure that a valid object is created.
I have no error for each template, and no information for find the wrong template used :-(
Cppcheck is unable to instaniate the third variable:
and gives up so all templates after it are also not instantiated.
I created a ticket for this: https://trac.cppcheck.net/ticket/8576#ticket