Skip to content

Commit 15bf1cf

Browse files
author
Michael Blome
committed
removed references to deprecated register keyword
1 parent 599600a commit 15bf1cf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/cpp/address-of-operator-amp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ms.workload: ["cplusplus"]
2525
```
2626

2727
## Remarks
28-
The unary address-of operator (**&**) takes the address of its operand. The operand of the address-of operator can be either a function designator or an l-value that designates an object that is not a bit field and is not declared with the **register** storage-class specifier.
28+
The unary address-of operator (**&**) takes the address of its operand. The operand of the address-of operator can be either a function designator or an l-value that designates an object that is not a bit field.
2929

3030
The address-of operator can only be applied to variables with fundamental, structure, class, or union types that are declared at the file-scope level, or to subscripted array references. In these expressions, a constant expression that does not include the address-of operator can be added to or subtracted from the address-of expression.
3131

docs/cpp/storage-classes-cpp.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.suite: ""
77
ms.technology: ["cpp-language"]
88
ms.tgt_pltfrm: ""
99
ms.topic: "language-reference"
10-
f1_keywords: ["thread_local_cpp", "external_cpp", "static_cpp"]
10+
f1_keywords: ["thread_local_cpp", "external_cpp", "static_cpp", "register_cpp"]
1111
dev_langs: ["C++"]
1212
helpviewer_keywords: ["storage classes [C++], basic concepts"]
1313
ms.assetid: f10e1c56-6249-4eb6-b08f-09ab1eef1992
@@ -25,7 +25,8 @@ A *storage class* in the context of C++ variable declarations is a type specifie
2525

2626
1. The [mutable](../cpp/mutable-data-members-cpp.md) keyword may be considered a storage class specifier. However, it is only available in the member list of a class definition.
2727

28-
2. **Visual C++ 2010 and later:** The `auto` keyword is no longer a C++ storage-class specifier, and the `register` keyword is deprecated. **Visual Studio 2017 version 15.3 and later:** (available with [/std:c++17](../build/reference/std-specify-language-standard-version.md)): The `register` keyword is no longer a supported storage class. The keyword is still reserved in the standard for future use.
28+
2. **Visual C++ 2010 and later:** The `auto` keyword is no longer a C++ storage-class specifier, and the `register` keyword is deprecated. **Visual Studio 2017 version 15.7 and later:** (available with [/std:c++17](../build/reference/std-specify-language-standard-version.md)): The `register` keyword is removed from the C++ language.
29+
2930
```cpp
3031
register int val; // warning C5033: 'register' is no longer a supported storage class
3132
```

0 commit comments

Comments
 (0)