Compiler Warning (level 4) C4671

'identifier' : the copy constructor is inaccessible

A user-defined copy constructor for the specified thrown object is not accessible. The object cannot be constructed when it is thrown. Check that the copy constructor has public access.

The following example causes this warning:

class C
{
    C( C& );    // copy constructor has private access by default
} c;

void main()
{
    try
    {
       throw c;
    }
    catch( C )    // warning
    {
    }
}