git.s-ol.nu ~forks/DiligentCore / 8331b0c
BacicMath.hpp: fixed clang/gcc build issue assiduous 7 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22052205 template <typename T>
22062206 typename std::enable_if<std::is_enum<T>::value, T>::type ExtractLSB(T& bits)
22072207 {
2208 return static_cast<T>(ExtractLSB(reinterpret_cast<std::underlying_type<T>::type&>(bits)));
2208 return static_cast<T>(ExtractLSB(reinterpret_cast<typename std::underlying_type<T>::type&>(bits)));
22092209 }
22102210
22112211 } // namespace Diligent