Skip to content

Commit

Permalink
Fix absl::container on VS2017 v15.8 (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 19, 2018
1 parent 837ea0a commit 68d5877
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions absl/container/internal/raw_hash_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ class raw_hash_map : public raw_hash_set<Policy, Hash, Eq, Alloc> {
using MappedConstReference = decltype(P::value(
std::addressof(std::declval<typename raw_hash_map::const_reference>())));

using KeyArgImpl = container_internal::KeyArg<IsTransparent<Eq>::value &&
IsTransparent<Hash>::value>;

public:
using key_type = typename Policy::key_type;
using mapped_type = typename Policy::mapped_type;
template <typename K>
using key_arg = typename raw_hash_map::raw_hash_set::template key_arg<K>;
template <class K>
using key_arg = typename KeyArgImpl::template type<K, key_type>;

static_assert(!std::is_reference<key_type>::value, "");
// TODO(alkis): remove this assertion and verify that reference mapped_type is
Expand Down

0 comments on commit 68d5877

Please sign in to comment.