[libcxx-commits] [PATCH] D58587: Implement P0433: deduction guides for <map>

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 30 13:30:07 PDT 2019


ldionne added inline comments.


================
Comment at: include/map:1474
+         class _Allocator = allocator<pair<const _Key, _Tp>>,
+         class = typename enable_if<!__is_allocator<_Compare>::value, void>::type,
+         class = typename enable_if<__is_allocator<_Allocator>::value, void>::type>
----------------
So those `enable_if`s are required to avoid colliding with the `map(initializer_list<pair<_Key, _Tp>>, _Allocator)` deduction guide, correct?


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58587/new/

https://reviews.llvm.org/D58587





More information about the libcxx-commits mailing list