Core/Algorithm: Improve SafeCast to handle references

This commit is contained in:
Jérôme Leclercq
2022-01-02 21:59:58 +01:00
parent 55784a7dfc
commit aac6e38da2
2 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ namespace Nz
template<typename T> void HashCombine(std::size_t& seed, const T& v);
template<typename T> bool IsPowerOfTwo(T value);
template<typename T> T ReverseBits(T integer);
template<typename To, typename From> To SafeCast(From value);
template<typename To, typename From> To SafeCast(From&& value);
template<typename T> constexpr auto UnderlyingCast(T value) -> std::underlying_type_t<T>;
template<typename T>