mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 08:01:51 +08:00
commit
84a86a7933
@ -62,7 +62,13 @@ namespace profiler {
|
|||||||
|
|
||||||
template <class T, bool greater_than_size_t>
|
template <class T, bool greater_than_size_t>
|
||||||
struct hash : public ::std::hash<T> {
|
struct hash : public ::std::hash<T> {
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER >= 1910
|
||||||
|
inline size_t operator () (const T& value) const {
|
||||||
|
return ::std::hash<T>::operator()(value);
|
||||||
|
}
|
||||||
|
#else
|
||||||
using ::std::hash<T>::operator();
|
using ::std::hash<T>::operator();
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user