Commit a31f8b9
authored
Qualcomm AI Engine Direct - Remove C++ designated initializers for Windows MSVC (pytorch#20441)
### Summary
This PR is a follow-up to
pytorch#19686
Due to the changes in pytorch#19621,
additional adjustments are required for Windows MSVC compatibility. This
PR removes remaining C++ designated initializers and aligns the
implementation accordingly.
- Designated initializers for C++ aggregates were standardized in C++20.
- GCC and Clang have supported them as a C++11/14/17 extension — they
silently accept the syntax even when compiling in `-std=c++17` mode.
- MSVC is strictly conformant: it only accepts designated initializers
when `/std:c++20` (or `/std:c++latest`) is active.1 parent 01c25f8 commit a31f8b9
1 file changed
Lines changed: 9 additions & 10 deletions
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
0 commit comments