You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/cmake-projects-in-visual-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ When you build for Windows using the MSVC compiler, CMake projects have support
153
153
154
154
When you build for Windows with the MSVC compiler, CMake projects have support for Edit and Continue. Add the following code to your *`CMakeLists.txt`* file to enable Edit and Continue.
155
155
156
-
```
156
+
```txt
157
157
if(MSVC)
158
158
target_compile_options(<target> PUBLIC "/ZI")
159
159
target_link_options(<target> PUBLIC "/INCREMENTAL")
8\) Returns the result of adding the number of months and years to the specified month and year.
119
119
120
-
9\) Returns the result of adding months or years to a `year_month_day`. If `ymd.month()` is `February` and `ymd.day()` is not in the range [1d, 28d], `ok()` may return `false` for the result of the addition.
120
+
9\) Returns the result of adding months or years to a `year_month_day`. If `ymd.month()` is `February` and `ymd.day()` is not in the range [1d, 28d], `ok()` may return `false` for the result of the addition.
121
121
122
122
10\) Returns `(ymdl.year() / ymdl.month() + dm) / last`. Note: The `/` used here isn't a division operator. It's the date operator.
4\) Returns the result of `d-ds.count()`. If the result is out of the range [0, 255], then the result is unspecified.
297
297
298
-
5\) If `m.ok() == true` and `ms.ok() == true`, returns the result of subtracting the two month values, or subtracting the number of months. The result will be in the range [1, 12]. If the result is negative, it wraps around. For example, subtracting one month from January (`month m1{1} - months{1};` results in 12 (December).
298
+
5\) If `m.ok() == true` and `ms.ok() == true`, returns the result of subtracting the two month values, or subtracting the number of months. The result will be in the range [1, 12]. If the result is negative, it wraps around. For example, subtracting one month from January (`month m1{1} - months{1};` results in 12 (December).
299
299
300
300
6\) Returns the difference in months between *`Left`* and *`Right`*
301
301
302
302
7\) If `Left.ok() == true` and `Right.ok() == true`, returns a `weekday` in the range [`days{0}`, `days{6}`].
303
303
304
304
8\) Returns the number of days between two weekdays.
305
305
306
-
9\) Returns `year(int(y)-ys.count)())`
306
+
9\) Returns `year(int(y)-ys.count())`
307
307
308
308
10\) Returns `years(int(y) - int(y2))`. Subtracting two `year` values results in a `std::chrono::years`, which represents the difference in years between `y` and `y2`. For example, `2021y-2000y` produces `years(21)`.
2\) Determines if the point in time since the epoch of the `Left`[`time_point`](../standard-library/time-point-class.md) is greater than the time since the epoch of the `time_point` in `Right`.
679
679
680
680
```cpp
681
-
1)
681
+
1)
682
682
template <class Rep1, class Period1, class Rep2, class Period2>
683
683
constexpr bool operator>(
684
684
const duration<Rep1, Period1>& Left,
@@ -846,8 +846,8 @@ int main()
846
846
```
847
847
848
848
```output
849
-
d1 < d2
850
-
true true false
849
+
d1 > d2
850
+
true true false
851
851
```
852
852
853
853
## <aname="op_left_shift"></a> `operator<<`
@@ -1118,7 +1118,7 @@ The output stream you passed in, `os`
1118
1118
1119
1119
21\) In Microsoft's implementation, a `sys_info` is output as its `begin`, `end`, `offset`, `save`, and `abbrev` fields. For example: `begin: 2021-03-14 10:00:00, end: 2021-11-07 09:00:00, offset: -25200s, save: 60min, abbrev: PDT`
1120
1120
1121
-
22\) In Microsoft's implementation, a `local_info` is output as yyyy-mm-dd hh:mm::ss.ssssss. For example, `2021-09-17 13:55:59.6590120`
1121
+
22\) In Microsoft's implementation, a `local_info` is output as yyyy-mm-dd hh:mm:ss.ssssss. For example, `2021-09-17 13:55:59.6590120`
1122
1122
1123
1123
23\) The local time in the `zoned_time` (obtained as `zt.get_local_time()`) is output using the format yyyy-mm-dd hh:mm:ss timezone. For example, `2021-09-15 10:45:00 GMT-6`
0 commit comments