[libcxx-commits] [PATCH] D88727: vector (iterator, iterator) constructor doesn't deduce second arg

kamlesh kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 2 04:20:03 PDT 2020


kamleshbhalui created this revision.
kamleshbhalui added reviewers: mclow.lists, ldionne.
Herald added a subscriber: dexonsmith.
Herald added a project: libc++.
Herald added a reviewer: libc++.
kamleshbhalui requested review of this revision.

since compiler can not deduce second arg from first arg.
when  invoked as

  std::vector<int> v({}, std::istream_iterator<int>{});

As part of the fix made the second arg of vector(iterator, iterator) constructor independent of the first arg.
fixing:
https://bugs.llvm.org/show_bug.cgi?id=47497


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88727

Files:
  libcxx/include/vector
  libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88727.295783.patch
Type: text/x-patch
Size: 6369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201002/01bcaff2/attachment.bin>


More information about the libcxx-commits mailing list