Compiler Error C2621
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C2621

member 'identifier' of union 'union' has copy constructor

A union member cannot have a copy constructor.


// C2621.cpp
class A
   A( const A& );  // A has a copy constructor
union U
   A a;            // C2621
© 2015 Microsoft