Export (0) Print
Expand All
Expand Minimize

Compiler Error C3672

Error Message

pseudo-destructor expression can only be used as part of a function call

A destructor was called incorrectly. For more information, see Destructors (C++).

Example

The following sample generates C3672.

// C3672.cpp
template<typename T>
void f(T* pT) {
   &pT->T::~T;   // C3672
   pT->T::~T();   // OK
};

int main() {
   int i;
   f(&i);
}

Community Additions

ADD
Show:
© 2014 Microsoft