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