Kompilatorfel C2325

"type" : oväntad typ till höger om "namn"

Anmärkningar

Ett anrop görs till en destructor av felaktig typ.

Example

I följande exempel genereras C2325:

// C2325.cpp
// compile with: /c
class A {};
typedef A* pA_t;
void f() {
    A** ppa = new A *;
    ppa->~A*;   // C2325

   pA_t *ppa2 = new pA_t;
   ppa2->~pA_t();   // OK
}