microsoft / OpenXR-MixedReality

OpenXR samples and preview headers for HoloLens and Windows Mixed Reality developers familiar with Visual Studio
https://aka.ms/openxr
MIT License
340 stars 96 forks source link

Fix failed assert in XrMath.h #110

Closed dgough closed 2 years ago

dgough commented 2 years ago

Fixed issue #109. The error occurred in VS2022 but not in the VS2019 toolset.

The compiler error message isn't as obvious now but I added a comment if anyone tries to use xr::math::cast for a type that hasn't added a template specialization.