User Activity

  • Posted a comment on discussion Development on cppcheck

    I use cppcheck version 2.6. Below is a class that has a static template method (create()): // CAbc.h #pragma once class CAbc { public: template<class D> static CAbc *create() { CAbc *pCtrl = new CAbc(); return pCtrl; } ~CAbc(); private: CAbc(); }; CAbc::CAbc() { } CAbc::~CAbc() { } The 'create()' method is used in another source file: // Caller.cpp #include "CAbc.h" void test() { CAbc * p = CAbc::create<int>(); } I use the following command: cppcheck -URM -URM_OLD -URM_OLD_DELEGATES --enable=all...

View All

Personal Data

Username:
catalinp
Joined:
2021-12-15 07:58:14.151000

Projects

  • No projects to display.

Personal Tools