Developer Guide and Reference

Contents

std
, Qstd

Tells the compiler to conform to a specific language standard.

Syntax

Linux:
-std=
val
macOS:
-std=
val
Windows:
/Qstd=
val
Arguments
val
Specifies the specific language standard to conform to. Possible values are:
c++2a
Enables experimental C20 support for C++ programs.
c++17
Enables support for the 2017 ISO C++ standard features. For information about supported features for this setting, see the article https://software.intel.com/en-us/articles/c17-features-supported-by-intel-c-compiler.
c++14
Enables support for the 2014 ISO C++ standard features. The following features are available:
  • Tweaked working for contextual conversion
  • Binary literals
  • decltype(auto), return type deduction for normal functions
  • Initialized lambda captures: simple-capture, init-captur
  • Generic lambda expressions
  • Variable templates
  • Extended constexpr
  • NSDMIs for aggregates
  • Avoiding/fusing allocations
  • [deprecated] attributes
  • Sized deallocation
  • Single-Quotation-Mark as a digit separator
c++11