warning: IPluginFactory has virtual functions but non-virtual destructor

In TensorRT 5.0, NvInfer.h, the class IPluginFactory has virtual functions but non-virtual destructor.

This is not necessarily a bug, but it could lead potentially lead to surprising results for users who derive this class.

Thanks for the feedback. Where do you see the non-virtual destructor?

class IPluginFactory
 4989 {
 4990 public:
 5005     virtual IPlugin* createPlugin(const char* layerName, const void* serialData, size_t serialLength) = 0;
 5006 };
 5007

The implicit destructor is non-virtual. (no destructor is explicitly declared, so the compiler generates a non-virtual one for you)

got it. I’ll relay the feedback to the engineering team. Appreciate the feedback