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.5k stars 395 forks source link

Updated pimpl pattern for default move ctors/ops/dtors #106

Closed walbourn closed 3 years ago

walbourn commented 3 years ago

The pImpl code pattern used in this library dates back to VS 2013 which did not have support for =default or the auto-generation of move ctors/ops.

Care still needs to be taken due to pImpl, but the bodies of many of the functions can be replaced with =default.