microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.48k stars 393 forks source link

Remove AlignedNew.h helper #35

Closed walbourn closed 3 years ago

walbourn commented 6 years ago

VS 2015 supports alignas, but does not support aligned new. VS 2017 in the 15.5 update added support for C++17 aligned new, which when present we could use instead of the AlignedNew.h helper.

See this speclet

walbourn commented 6 years ago

This is note for the future. It will be some time before I drop VS 2015 Update 3 support or adopt C++17 features.

walbourn commented 6 years ago

Another thing that can change if adopting C++17 features would be to use the [[fallthrough]] attribute instead of the non-portable __fallthrough SAL annotation for switch-fall-through cases.

walbourn commented 3 years ago

https://github.com/microsoft/DirectXTK12/commit/cac6bb3175ac89605f434d86e70168c4b20f8971