Skip to content

Commit

Permalink
fix MSVC build by using braced init
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Aug 29, 2024
1 parent 433e820 commit c22b06d
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 @@ -859,6 +859,7 @@ 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);
std::hash<std::basic_string<CharT, Traits>> strHash;
return strHash.operator()(str);
}
} // namespace std

0 comments on commit c22b06d

Please sign in to comment.