Skip to content

Commit f3e8928

Browse files
authored
Add forward slash for /std compiler options
1 parent a6b6fe9 commit f3e8928

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/cpp/nothrow-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A **`__declspec`** extended attribute which can be used in the declaration of fu
2020

2121
We recommend that all new code use the [`noexcept`](noexcept-cpp.md) operator rather than `__declspec(nothrow)`.
2222

23-
This attribute tells the compiler that the declared function and the functions it calls never throw an exception. However, it does not enforce the directive. In other words, it never causes [`std::terminate`](../standard-library/exception-functions.md#terminate) to be invoked, unlike **`noexcept`**, or in **`std:c++17`** mode (Visual Studio 2017 version 15.5 and later), `throw()`.
23+
This attribute tells the compiler that the declared function and the functions it calls never throw an exception. However, it does not enforce the directive. In other words, it never causes [`std::terminate`](../standard-library/exception-functions.md#terminate) to be invoked, unlike **`noexcept`**, or in **`/std:c++17`** mode (Visual Studio 2017 version 15.5 and later), `throw()`.
2424

2525
With the synchronous exception handling model, now the default, the compiler can eliminate the mechanics of tracking the lifetime of certain unwindable objects in such a function, and significantly reduce the code size. Given the following preprocessor directive, the three function declarations below are equivalent in **`/std:c++14`** mode:
2626

docs/standard-library/basic-string-view-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ If a function is asked to generate a sequence longer than [`max_size`](#max_size
138138

139139
## Requirements
140140

141-
[`std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.
141+
[`/std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.
142142

143143
**Header:** `<string_view>`
144144

@@ -1013,7 +1013,7 @@ Null-terminated character string containing the prefix to look for.
10131013
10141014
### Remarks
10151015
1016-
`starts_with()` is new in C++20. To use it, specify the [`std:c++20`](../build/reference/std-specify-language-standard-version.md) or later compiler option.
1016+
`starts_with()` is new in C++20. To use it, specify the [`/std:c++20`](../build/reference/std-specify-language-standard-version.md) or later compiler option.
10171017
10181018
See [`ends_with`](#ends_with) to see if a string ends with a suffix.
10191019

docs/standard-library/string-view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ helpviewer_keywords: ["string_view header"]
66
---
77
# `<string_view>`
88

9-
Defines the class template `basic_string_view` and related types and operators. (Requires compiler option [`std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.)
9+
Defines the class template `basic_string_view` and related types and operators. (Requires compiler option [`/std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.)
1010

1111
## Syntax
1212

@@ -60,7 +60,7 @@ The `<string_view>` operators can compare `string_view` objects to objects of an
6060

6161
- **Namespace:** `std`
6262

63-
- **Compiler Option:** [`std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.
63+
- **Compiler Option:** [`/std:c++17`](../build/reference/std-specify-language-standard-version.md) or later.
6464

6565
## See also
6666

0 commit comments

Comments
 (0)