Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 4) C4611
Collapse the table of content
Expand the table of content

Compiler Warning (level 4) C4611

Error Message

interaction between 'function' and C++ object destruction is non-portable

On some platforms, functions that include catch may not support C++ object semantics of destruction when out of scope.

To avoid unexpected behavior, avoid using catch in functions that have constructors and destructors.

This warning is only issued once; see pragma warning.

Community Additions

ADD
Show:
© 2015 Microsoft