C1431: Wrong destructor call

[ERROR]

Description

This call to the destructor would require the destructor to be static. But destructors are never static.

Example
  class A {

  
  public:

  
    ~A();

  
    A();

  
  };

  
  void main() {

  
    A::~A();  // error

  
    A::A();   // ok, generating temporary object

  
  }

  
Tips

Do not make calls to static destructors, because there are no static destructors.