Skip to content

Commit

Permalink
fix MSVC most vexing parse
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Aug 29, 2024
1 parent 433e820 commit a2cb2c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/aws/crt/StringView.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <iterator>
#include <limits>
#include <stddef.h>
#include <string>
#include <type_traits>

#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
Expand Down Expand Up @@ -859,6 +860,6 @@ namespace std
const Aws::Crt::basic_string_view<CharT, Traits> &val) const noexcept
{
auto str = std::basic_string<CharT, Traits>(val.data(), val.size());
return std::hash<std::basic_string<CharT, Traits>>()(str);
return std::hash<std::basic_string<CharT, Traits>>{}(str);
}
} // namespace std

0 comments on commit a2cb2c5

Please sign in to comment.