mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-30 19:54:43 +00:00
fix windows build
This commit is contained in:
parent
3947277ce2
commit
80cae9f7ac
10
global.h
10
global.h
@ -87,22 +87,22 @@ constexpr IntegerType static_hash(const char* str, unsigned char index = 0) noex
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
u_int64_t static_type_hash_64() noexcept {
|
uint64_t static_type_hash_64() noexcept {
|
||||||
return static_hash<u_int64_t>(typeid (T).name());
|
return static_hash<uint64_t>(typeid (T).name());
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
u_int32_t static_type_hash_32() noexcept {
|
uint32_t static_type_hash_32() noexcept {
|
||||||
return typeid (T).hash_code();
|
return typeid (T).hash_code();
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
u_int16_t static_type_hash_16() noexcept {
|
uint16_t static_type_hash_16() noexcept {
|
||||||
return typeid (T).hash_code() % 0xFFFF;
|
return typeid (T).hash_code() % 0xFFFF;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
u_int8_t static_type_hash_8() noexcept {
|
uint8_t static_type_hash_8() noexcept {
|
||||||
return typeid (T).hash_code() % 0xFF;
|
return typeid (T).hash_code() % 0xFF;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user