Compiler Warning (level 4) C4671 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

'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 shows how this situation might occur.

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

void main()
       throw c;
    catch( C )    // warning

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.