[libcxx-commits] [PATCH] D58617: Implement deduction guides for <unordered_set>

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 25 06:39:49 PST 2019


Quuxplusone created this revision.
Quuxplusone added a reviewer: mclow.lists.
Herald added subscribers: libcxx-commits, ldionne.

In this case (alone) I needed to make `allocator_type`, `hasher`, and `key_equal` opaque to deduction using the `__identity` metafunction. With the original non-opaque aliases, some of the implicit deduction guides from `unordered_set`'s constructors were interfering with deduction from the explicit deduction guides.

What's strange is that I did *not* run into this problem with `unordered_map`.


Repository:
  rCXX libc++

https://reviews.llvm.org/D58617

Files:
  include/unordered_set
  test/std/containers/unord/unord.multiset/unord.multiset.cnstr/deduct.fail.cpp
  test/std/containers/unord/unord.multiset/unord.multiset.cnstr/deduct.pass.cpp
  test/std/containers/unord/unord.set/unord.set.cnstr/deduct.fail.cpp
  test/std/containers/unord/unord.set/unord.set.cnstr/deduct.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58617.188160.patch
Type: text/x-patch
Size: 36074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190225/70f76c0e/attachment-0001.bin>


More information about the libcxx-commits mailing list