From 06e52d84e284fb86ef95826298e0dc0b90e3977f Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Thu, 29 Aug 2024 13:45:24 -0400 Subject: [PATCH] fix MSVC most vexing parse --- include/aws/crt/StringView.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/aws/crt/StringView.h b/include/aws/crt/StringView.h index 27c162ffe..3b6dc2f0f 100644 --- a/include/aws/crt/StringView.h +++ b/include/aws/crt/StringView.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) @@ -859,6 +860,6 @@ namespace std const Aws::Crt::basic_string_view &val) const noexcept { auto str = std::basic_string(val.data(), val.size()); - return std::hash>()(str); + return std::hash>{}(str); } } // namespace std