0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 16:51:22 +08:00

Fixed #72 Where building x86 binaries with VS 2017 resulted in an internal compiler error

This commit is contained in:
Sebastian Bischlager 2017-11-06 18:00:37 +01:00
parent 6db3cafdce
commit 23cf75fea4

View File

@ -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>