In what language modes does the STL support /Zc:alignedNew and/or /Zc:alignedNew-?
| language mode |
/Zc:alignedNew |
/Zc:alignedNew- |
Note |
| C++14 |
??? |
Yes |
clang-cl (but not cl) allows /std:c++14 /Zc:alignedNew |
| C++17 |
Yes |
Maybe |
|
| C++20 |
Yes |
Maybe |
|
| C++23 |
Yes |
Maybe |
|
Once this is decided, we should:
- Enforce that
__cpp_aligned_new has a supported value for the current language mode if there are unsupported combinations.
- Add test coverage if we decide to support any of the non-Yes combinations in the table above (we already cover all of the
Yeses). At least "C++14 with aligned new" (if we choose to support that) and "C++latest without aligned new".
Related: DevCom-1346191, DevCom-10036384.
In what language modes does the STL support
/Zc:alignedNewand/or/Zc:alignedNew-?/Zc:alignedNew/Zc:alignedNew-clang-cl(but notcl) allows/std:c++14 /Zc:alignedNewOnce this is decided, we should:
__cpp_aligned_newhas a supported value for the current language mode if there are unsupported combinations.Yeses). At least "C++14 with aligned new" (if we choose to support that) and "C++latest without aligned new".Related: DevCom-1346191, DevCom-10036384.