Compiler Error C2325
'type' : unexpected type to the right of 'name'
A call is made to a destructor of incorrect type.
The following sample generates 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
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for