10-07-2017, 09:47 AM
The basic answer to all these queries is that every definition in the program must be used somewhere, or conversely, it should not be possible to remove a definition from the code and still have the program compile.
So for a template class, each member of the class must be used by at least one instantiation of the template.
So for a template class, each member of the class must be used by at least one instantiation of the template.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group