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

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 14 09:36:51 PDT 2020


ldionne added a comment.

It should be possible to use the following pattern instead, I think:

  template <class _InputIterator, class = enable-if-expression>
  vector(_InputIterator __first, _InputIterator __last);

This may not work in C++03 mode where default template arguments are not allowed IIRC, but maybe we can have a C++03 specific workaround?


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

https://reviews.llvm.org/D88727



More information about the libcxx-commits mailing list