Skip to content

Commit 02dea38

Browse files
authored
Fix some typos in "C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2017"
1 parent f8b616e commit 02dea38

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/overview/cpp-conformance-improvements-2017.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.subservice: "cpp-lang"
77
---
88
# C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2017
99

10-
Microsoft C/C++ in Visual Studio (MSVC) makes conformance improvements and bug fixes in every release. This article lists the improvements by major release, then by version. To jump directly to the changes for a specific version, use list below **In this article**.
10+
Microsoft C/C++ in Visual Studio (MSVC) makes conformance improvements and bug fixes in every release. This article lists the improvements by major release, then by version. To jump directly to the changes for a specific version, use the list below **In this article**.
1111

1212
This document lists the changes in Visual Studio 2017. For a guide to the changes in Visual Studio 2022, see [C++ conformance improvements in Visual Studio 2022](cpp-conformance-improvements.md). For a guide to the changes in Visual Studio 2019, see [C++ conformance improvements in Visual Studio 2019](cpp-conformance-improvements-2019.md). For a complete list of previous conformance improvements, see [Visual C++ What's New 2003 through 2015](../porting/visual-cpp-what-s-new-2003-through-2015.md).
1313

@@ -805,7 +805,7 @@ In earlier versions of Visual Studio, the compiler always gave a **`constexpr`**
805805
806806
### Removing allocator support in `std::function`
807807
808-
[P0302R1](https://wg21.link/p0302r1) Prior to C++17, the class template `std::function` had several constructors that took an allocator argument. However, the use of allocators in this context was problematic, and the semantics were unclear. The problem contructors have been removed.
808+
[P0302R1](https://wg21.link/p0302r1) Prior to C++17, the class template `std::function` had several constructors that took an allocator argument. However, the use of allocators in this context was problematic, and the semantics were unclear. The problematic constructors have been removed.
809809
810810
### Fixes for `not_fn()`
811811
@@ -1051,7 +1051,7 @@ When the code doesn't need to be backwards compatible, avoid the warning by remo
10511051

10521052
### `__declspec` attributes with `extern "C"` linkage
10531053

1054-
In earlier versions of Visual Studio, the compiler ignored `__declspec(...)` attributes when `__declspec(...)` was applied before the `extern "C"` linkage specification. This behavior caused code to be generated that user didn't intend, with possible runtime implications. The [C4768](../error-messages/compiler-warnings/c4768.md) warning was added in Visual Studio version 15.3, but was off by default. In Visual Studio 2017 version 15.5, the warning is enabled by default.
1054+
In earlier versions of Visual Studio, the compiler ignored `__declspec(...)` attributes when `__declspec(...)` was applied before the `extern "C"` linkage specification. This behavior caused code to be generated that the user didn't intend, with possible runtime implications. The [C4768](../error-messages/compiler-warnings/c4768.md) warning was added in Visual Studio version 15.3, but was off by default. In Visual Studio 2017 version 15.5, the warning is enabled by default.
10551055

10561056
```cpp
10571057
__declspec(noinline) extern "C" HRESULT __stdcall // C4768
@@ -1632,7 +1632,7 @@ using X = __declspec(deprecated("msg")) T; // C2760: syntax error:
16321632
// expected 'type specifier'
16331633
```
16341634

1635-
To fix the error, change to code to the following (with the attribute placed before the '=' of the alias definition):
1635+
To fix the error, change the code to the following (with the attribute placed before the '=' of the alias definition):
16361636

16371637
```cpp
16381638
template <typename T>

0 commit comments

Comments
 (0)