Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C2623

member 'identifier' of union 'union' has destructor

A union member cannot have a destructor.

The following sample generates C2623:

// C2623.cpp
class A {
   ~A();   // A has a destructor
union U {
   A a;    // C2623
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.