[libcxx-commits] [PATCH] D131868: [libc++][NFC] Refactor enable_ifs in vector
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 15 09:41:06 PDT 2022
Mordante added inline comments.
================
Comment at: libcxx/include/vector:401
+ int> = 0>
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 vector(_InputIterator __first, _InputIterator __last);
+
----------------
I find it a bit odd to add `_LIBCPP_HIDE_FROM_ABI` in an NFC patch, it's also not mentioned in the commit message.
================
Comment at: libcxx/include/vector:679
+
+ template <class _ForwardIterator, class = __enable_if_t<__is_cpp17_forward_iterator<_ForwardIterator>::value> >
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 void
----------------
Why the `class =` in this case?
================
Comment at: libcxx/include/vector:1003
+template <class _ForwardIterator, class>
+_LIBCPP_CONSTEXPR_AFTER_CXX17 void
vector<_Tp, _Allocator>::__construct_at_end(_ForwardIterator __first, _ForwardIterator __last, size_type __n)
----------------
Here you removed and enable_if, is that really intended?
I'm a bit concerned the CI passes with this change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131868/new/
https://reviews.llvm.org/D131868
More information about the libcxx-commits
mailing list