Intel® C++ Compiler 16.0 User and Reference Guide

Zc

Lets you specify ANSI C standard conformance for certain language features.

Syntax

Linux and OS X:

None

Windows:

/Zc:arg[,arg]

Arguments

arg

Is the language feature for which you want standard conformance. Possible values are:

forScope[-]

forScope tells the compiler to use the standard behavior for initializers of for loops. forScope- disables this setting.

wchar_t[-]

wchar_t tells the compiler that wchar_t is a native data type. wchar_t- disables this setting.

auto[-]

auto tells the compiler to comply with the new standard meaning for auto. auto- disables this setting.

Default

/Zc:forScope,wchar_t

The compiler uses the standard behavior for initializers of for loops and it assumes that wchar_t is a native data type.

Description

This option lets you specify ANSI C standard conformance for certain language features.

If you do not want the default behavior for one or more of the settings, you must specify the negative form of the setting. For example, if you do not want the forScope or wchar_t default behavior, you should specify /Zc:forScope-,wchar_t-.

IDE Equivalent

Visual Studio: Language > Treat wchar_t as Built-in Type / Force Conformance In For Loop Scope

Eclipse: None

Xcode: None

Alternate Options

None