microsoft / DirectXMath

DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps
https://walbourn.github.io/introducing-directxmath/
MIT License
1.52k stars 234 forks source link

Convert typedef to using where possible #113

Closed walbourn closed 4 years ago

walbourn commented 4 years ago

Still have some lingering C style typdef. Should use C++ style using instead.

john-h-k commented 4 years ago

looks pretty trivial, can I take this? 😄

walbourn commented 4 years ago

using is better for simple alias names like:

using XMVECTOR = __m128;

It cannot be used however to define const versions of types like:

typedef const XMVECTOR& HXMVECTOR;

So in the end I just cleaned up some of the typedef usage.

walbourn commented 4 years ago

Fixed in this commit