Skip to content

Commit

Permalink
Workaround for DevCom-10678753
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja committed Jun 9, 2024
1 parent 89a3826 commit f829e4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stl/inc/hash_map
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ namespace stdext {
using _Deduce_key = const _Kty&;
using key_equal = _Tr;

#if _HAS_CXX20 && defined(__EDG__) // TRANSITION, DevCom-10678753
template <class, class>
static constexpr bool _Supports_transparency = false;
#endif // _HAS_CXX20 && defined(__EDG__)

_Hmap_traits() = default;

_Hmap_traits(const _Tr& _Traits) noexcept(_STD is_nothrow_copy_constructible_v<_Tr>) : _Tr(_Traits) {}
Expand Down
5 changes: 5 additions & 0 deletions stl/inc/hash_set
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ namespace stdext {
using _Deduce_key = const _Kty&;
using key_equal = _Tr;

#if _HAS_CXX20 && defined(__EDG__) // TRANSITION, DevCom-10678753
template <class, class>
static constexpr bool _Supports_transparency = false;
#endif // _HAS_CXX20 && defined(__EDG__)

_Hset_traits() = default;

_Hset_traits(const _Tr& _Traits) noexcept(_STD is_nothrow_copy_constructible_v<_Tr>) : _Tr(_Traits) {}
Expand Down
5 changes: 5 additions & 0 deletions stl/inc/xhash
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ struct _Uhash_choose_transparency {
// transparency selector for non-transparent hashed containers
template <class>
using _Deduce_key = const _Kty&;

#if _HAS_CXX20 && defined(__EDG__) // TRANSITION, DevCom-10678753
template <class, class>
static constexpr bool _Supports_transparency = false;
#endif // _HAS_CXX20 && defined(__EDG__)
};

#if _HAS_CXX20
Expand Down

0 comments on commit f829e4e

Please sign in to comment.