diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2019-02-25 18:32:57 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2019-02-25 18:32:57 +0000 |
| commit | 310b75e51995e8a9aeae0ea6c6d7922324453f57 (patch) | |
| tree | b95f9c4025fa388bdb9a39442a9f55e90faf66d6 /libcxx/include/span | |
| parent | a20bd2735e0ecb3ba9e483af86576c3d5175f457 (diff) | |
| download | bcm5719-llvm-310b75e51995e8a9aeae0ea6c6d7922324453f57.tar.gz bcm5719-llvm-310b75e51995e8a9aeae0ea6c6d7922324453f57.zip | |
LWG3101 - span's Container constructors need another constraint. Reviewed as https://reviews.llvm.org/D57058.
llvm-svn: 354805
Diffstat (limited to 'libcxx/include/span')
| -rw-r--r-- | libcxx/include/span | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libcxx/include/span b/libcxx/include/span index 78340003445..0edf92c0a9f 100644 --- a/libcxx/include/span +++ b/libcxx/include/span @@ -225,20 +225,6 @@ public: _LIBCPP_INLINE_VISIBILITY constexpr span( array<value_type, _Extent>& __arr) noexcept : __data{__arr.data()} {} _LIBCPP_INLINE_VISIBILITY constexpr span(const array<value_type, _Extent>& __arr) noexcept : __data{__arr.data()} {} - template <class _Container> - inline _LIBCPP_INLINE_VISIBILITY - constexpr span( _Container& __c, - enable_if_t<__is_span_compatible_container<_Container, _Tp>::value, nullptr_t> = nullptr) - : __data{_VSTD::data(__c)} - { _LIBCPP_ASSERT(_Extent == _VSTD::size(__c), "size mismatch in span's constructor (container)"); } - - template <class _Container> - inline _LIBCPP_INLINE_VISIBILITY - constexpr span(const _Container& __c, - enable_if_t<__is_span_compatible_container<const _Container, _Tp>::value, nullptr_t> = nullptr) - : __data{_VSTD::data(__c)} - { _LIBCPP_ASSERT(_Extent == _VSTD::size(__c), "size mismatch in span's constructor (const container)"); } - template <class _OtherElementType> inline _LIBCPP_INLINE_VISIBILITY constexpr span(const span<_OtherElementType, _Extent>& __other, |

