@@ -3066,40 +3066,6 @@ struct const_subarray<T, 1, ElementPtr, Layout> // NOLINT(fuchsia-multiple-inhe
3066
3066
BOOST_MULTI_FRIEND_CONSTEXPR auto cbegin (const_subarray const & self) {return self.cbegin ();}
3067
3067
BOOST_MULTI_FRIEND_CONSTEXPR auto cend (const_subarray const & self) {return self.cend () ;}
3068
3068
3069
- // // fix mutation
3070
- // template<class TT, class... As> constexpr auto operator=(const_subarray<TT, 1L, As...> const& other) && -> const_subarray& {operator=( other ); return *this;}
3071
- // template<class TT, class... As> constexpr auto operator=(const_subarray<TT, 1L, As...> const& other) & -> const_subarray& {
3072
- // assert(other.extensions() == this->extensions());
3073
- // elements() = other.elements();
3074
- // return *this;
3075
- // }
3076
-
3077
- // // fix mutation
3078
- // template<class TT, class... As> constexpr auto operator=(const_subarray<TT, 1L, As...> && other) && -> const_subarray& {operator=(std::move(other)); return *this;}
3079
- // template<class TT, class... As> constexpr auto operator=(const_subarray<TT, 1L, As...> && other) & -> const_subarray& {
3080
- // assert(this->extensions() == other.extensions());
3081
- // elements() = std::move(other).elements();
3082
- // return *this;
3083
- // }
3084
-
3085
- // template<
3086
- // class Range,
3087
- // class = std::enable_if_t<! std::is_base_of_v<const_subarray, Range> >,
3088
- // class = std::enable_if_t<! is_subarray<Range>::value> // NOLINT(modernize-use-constraints) TODO(correaa) for C++20
3089
- // >
3090
- // constexpr auto operator=(Range const& rng) & // TODO(correaa) check that you LHS is not read-only?
3091
- // -> const_subarray& { // lints(cppcoreguidelines-c-copy-assignment-signature,misc-unconventional-assign-operator)
3092
- // assert(this->size() == static_cast<size_type>(adl_size(rng))); // TODO(correaa) or use std::cmp_equal?
3093
- // adl_copy_n(adl_begin(rng), adl_size(rng), begin());
3094
- // return *this;
3095
- // }
3096
- // template<
3097
- // class Range,
3098
- // class = std::enable_if_t<! std::is_base_of_v<const_subarray, Range>>,
3099
- // class = std::enable_if_t<! is_subarray<Range>::value> // NOLINT(modernize-use-constraints) TODO(correaa) for C++20
3100
- // >
3101
- // constexpr auto operator=(Range const& rng) && -> const_subarray& {operator=(rng); return *this;}
3102
-
3103
3069
template <class It > constexpr auto assign (It first) &&
3104
3070
->decltype(adl_copy_n(first, std::declval<size_type>(), std::declval<iterator>()), void()) {
3105
3071
return adl_copy_n (first, this -> size () , std::move (*this ).begin ()), void (); }
0 commit comments