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/reference/zp-struct-member-alignment.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
@@ -31,7 +31,7 @@ The available packing values are described in the following table:
31
31
Don't use this option unless you have specific alignment requirements.
32
32
33
33
> [!WARNING]
34
-
> The C/C++ headers in the Windows SDK assume **`/Zp8`** packing internally. Don't change the setting from the default when you include the Windows SDK headers, either by using **`/Zp`** on the command line or by using `#pragma pack`. Otherwise, your application may cause memory corruption at runtime.
34
+
> The C/C++ headers in the Windows SDK assume the platform's default alignment is used. Don't change the setting from the default when you include the Windows SDK headers, either by using **`/Zp`** on the command line or by using `#pragma pack`. Otherwise, your application may cause memory corruption at runtime.
35
35
36
36
You can also use the [`pack` pragma](../../preprocessor/pack.md) to control structure packing. For more information about alignment, see:
A [`sys_days`](chrono.md#alias-declarations) or [`local_days`](chrono.md#alias-declarations)
83
83
84
84
*`wdi`*\
85
85
The [`weekday`](weekday-class.md) value.
86
86
87
87
*`y`*\
88
-
The [`year`] value.
88
+
The [`year`](year-class.md) value.
89
89
90
90
### Remarks: Constructor
91
91
92
92
1\) The default constructor doesn't initialize any of the fields.
93
93
94
+
2\) Constructs a `year_month_weekday` that corresponds to the specified `year`, `month`, and `weekday_indexed`.
95
+
94
96
3\) Constructs a `year_month_weekday` that corresponds to the date represented by `sys_days{dp.time_since_epoch()}`.
95
97
96
-
4\) Constructs a `year_month_weekday` that corresponds to the date represented by *`dp`*. For any `year_month_weekday` for which `ok()` is `true`, `year_month_weekday{sys_days{ymdl}}` is `true`.
98
+
4\) Constructs a `year_month_weekday` that corresponds to the date represented by *`dp`*. For any `year_month_weekday` (ymdl) for which `ok()` is `true`, comparison with `operator==` to `year_month_weekday{sys_days{ymdl}}` will be `true`.
97
99
98
100
For information about C++ 20 syntax used to specify dates, see [`operator/`](chrono-operators.md#op_/)
99
101
@@ -162,7 +164,7 @@ Add months or years to this `year_month_weekday`.
162
164
163
165
```cpp
164
166
1) constexpr year_month_weekday& operator+=(const months& m) noexcept;
0 commit comments