Skip to content

Commit ca5dc9d

Browse files
author
Michael Blome
committed
updates to bool, initializers and conformance topics
1 parent 7617d6e commit ca5dc9d

File tree

3 files changed

+33
-30
lines changed

3 files changed

+33
-30
lines changed

docs/cpp/bool-cpp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ if (condexpr1) statement1;
5555

5656
If `condexpr1` is **true**, `statement1` is always executed; if `condexpr1` is **false**, `statement1` is never executed.
5757

58-
When a postfix or prefix `++` operator is applied to a variable of type `bool`, the variable is set to **true**. The postfix or prefix `--` operator cannot be applied to a variable of this type.
58+
When a postfix or prefix `++` operator is applied to a variable of type `bool`, the variable is set to **true**.
59+
**Visual Studio 2017 version 15.3 and later**: operator++ for bool was removed from the language and is no longer supported.
60+
61+
The postfix or prefix `--` operator cannot be applied to a variable of this type.
5962

6063
The `bool` type participates in integral promotions. An r-value of type `bool` can be converted to an r-value of type `int`, with **false** becoming zero and **true** becoming one. As a distinct type, `bool` participates in overload resolution.
6164

docs/cpp/initializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,5 +543,5 @@ Decision Graph for Initialization of Reference Types
543543
References that are not qualified with either the **const** or `volatile` keyword can be initialized only with objects declared as neither **const** nor `volatile`.
544544
545545
### Initialization of external variables
546-
Declarations of automatic, register, static, and external variables can contain initializers. However, declarations of external variables can contain initializers only if the variables are not declared as `extern`.
546+
Declarations of automatic, static, and external variables can contain initializers. However, declarations of external variables can contain initializers only if the variables are not declared as `extern`.
547547

docs/visual-cpp-language-conformance.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
---
2-
title: "Visual C++ Language Conformance | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "3/1/2017"
5-
ms.reviewer: ""
6-
ms.suite: ""
7-
ms.technology:
8-
- "cpp-language"
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "article"
2+
title: "Visual C++ Language Conformance | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "3/1/2017"
5+
ms.reviewer: ""
6+
ms.suite: ""
7+
ms.technology:
8+
- "cpp-language"
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "article"
1111
dev_langs:
12-
- "C++"
13-
ms.assetid: 475da6e9-0d78-4b4e-bd23-f41c406c4efe
14-
caps.latest.revision: 11
15-
author: "corob-msft"
16-
ms.author: "corob"
17-
manager: "ghogen"
12+
- "C++"
13+
ms.assetid: 475da6e9-0d78-4b4e-bd23-f41c406c4efe
14+
caps.latest.revision: 11
15+
author: "corob-msft"
16+
ms.author: "corob"
17+
manager: "ghogen"
1818
translation.priority.ht:
19-
- "cs-cz"
20-
- "de-de"
21-
- "es-es"
22-
- "fr-fr"
23-
- "it-it"
24-
- "ja-jp"
25-
- "ko-kr"
26-
- "pl-pl"
27-
- "pt-br"
28-
- "ru-ru"
29-
- "tr-tr"
30-
- "zh-cn"
31-
- "zh-tw"
19+
- "cs-cz"
20+
- "de-de"
21+
- "es-es"
22+
- "fr-fr"
23+
- "it-it"
24+
- "ja-jp"
25+
- "ko-kr"
26+
- "pl-pl"
27+
- "pt-br"
28+
- "ru-ru"
29+
- "tr-tr"
30+
- "zh-cn"
31+
- "zh-tw"
3232
---
3333
# Visual C++ Language Conformance
3434
This topic summarizes the ISO C++03, C++11, C++14, and Draft C++17 language standards conformance of compiler features and Standard Library (STL) features for Visual C++ in Visual Studio 2017 and earlier versions. Each compiler and STL feature name links to the ISO C++ Standard proposal paper that describes the feature, if one is available at publication time. The Supported column lists the Visual Studio version in which support for the feature first appeared.

0 commit comments

Comments
 (0)