From 23cf75fea4fd785ce4ced81fe57e413961d2749d Mon Sep 17 00:00:00 2001 From: Sebastian Bischlager Date: Mon, 6 Nov 2017 18:00:37 +0100 Subject: [PATCH] Fixed #72 Where building x86 binaries with VS 2017 resulted in an internal compiler error --- easy_profiler_core/include/easy/reader.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/easy_profiler_core/include/easy/reader.h b/easy_profiler_core/include/easy/reader.h index 8773aa2..47e39aa 100644 --- a/easy_profiler_core/include/easy/reader.h +++ b/easy_profiler_core/include/easy/reader.h @@ -62,7 +62,13 @@ namespace profiler { template struct hash : public ::std::hash { +#if defined(_MSC_VER) && _MSC_VER >= 1910 + inline size_t operator () (const T& value) const { + return ::std::hash::operator()(value); + } +#else using ::std::hash::operator(); +#endif }; template