diff --git a/include/unordered_map b/include/unordered_map index 3f3808c1e..4fdac160f 100644 --- a/include/unordered_map +++ b/include/unordered_map @@ -404,7 +404,7 @@ public: _NOEXCEPT_(__is_nothrow_swappable<_Hash>::value) { using _VSTD::swap; - swap(static_cast(*this), static_cast(__y)); + swap(static_cast<_Hash&>(*this), static_cast<_Hash&>(__y)); } }; @@ -475,7 +475,7 @@ public: _NOEXCEPT_(__is_nothrow_swappable<_Pred>::value) { using _VSTD::swap; - swap(static_cast(*this), static_cast(__y)); + swap(static_cast<_Pred&>(*this), static_cast<_Pred&>(__y)); } };