Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

_SECURE_SCL 

Defines whether Checked Iterators are enabled. If defined as 1, unsafe iterator use causes a runtime error. If defined as 0, checked iterators are disabled. The exact behavior of the runtime error depends on the value of _SECURE_SCL_THROWS. The default value for _SECURE_SCL is 1, meaning checked iterators are enabled by default.

To enable checked iterators, set _SECURE_SCL to 1:

#define _SECURE_SCL 1

To disable checked iterators, set _SECURE_SCL to 0:

#define _SECURE_SCL 0

For information on how to disable warnings about checked iterators, see _SCL_SECURE_NO_WARNINGS.

Community Additions

ADD
Show:
© 2015 Microsoft