Qualcomm AI Engine Direct - Remove C++ designated initializers for Windows MSVC#20441
Conversation
…ndows MSVC - 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.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20441
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
Hi @GregoryComer and @psiddh, Thanks for the review! |
Summary
This PR is a follow-up to #19686
Due to the changes in #19621, additional adjustments are required for Windows MSVC compatibility. This PR removes remaining C++ designated initializers and aligns the implementation accordingly.
-std=c++17mode./std:c++20(or/std:c++latest) is active.