You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug (描述bug)
LRUCacheInterface lacks of virtual destructor, for a base class, virtual destructor is must-have.
otherwise, it will lead to memory or resource leaking in derived class.
A common guideline is that a destructor for a base class must be either public and virtual or protected and nonvirtual.
Describe the bug (描述bug)
LRUCacheInterface lacks of virtual destructor, for a base class, virtual destructor is must-have.
otherwise, it will lead to memory or resource leaking in derived class.
A common guideline is that a destructor for a base class must be either public and virtual or protected and nonvirtual.
To Reproduce (复现方法)
Expected behavior (期望行为)
Versions (各种版本)
OS:
Compiler:
branch: master
commit id:
Additional context/screenshots (更多上下文/截图)
The text was updated successfully, but these errors were encountered: