forked from boostorg/core
Merge pull request #115 from glenfe/develop
Remove inline friend begin and end functions
This commit is contained in:
@ -134,14 +134,6 @@ public:
|
||||
constexpr const_iterator cend() const noexcept;
|
||||
constexpr const_reverse_iterator crbegin() const noexcept;
|
||||
constexpr const_reverse_iterator crend() const noexcept;
|
||||
|
||||
friend constexpr iterator begin(span s) noexcept {
|
||||
return s.begin();
|
||||
}
|
||||
|
||||
friend constexpr iterator end(span s) noexcept {
|
||||
return s.end();
|
||||
}
|
||||
};
|
||||
|
||||
template<class I, class L>
|
||||
|
@ -347,14 +347,6 @@ public:
|
||||
return const_reverse_iterator(s_.p);
|
||||
}
|
||||
|
||||
friend constexpr iterator begin(span s) noexcept {
|
||||
return s.begin();
|
||||
}
|
||||
|
||||
friend constexpr iterator end(span s) noexcept {
|
||||
return s.end();
|
||||
}
|
||||
|
||||
private:
|
||||
detail::span_store<T, E> s_;
|
||||
};
|
||||
|
@ -362,18 +362,6 @@ void test_crend()
|
||||
BOOST_TEST_EQ((boost::span<int>(&a[0], 4).crend().base()), &a[0]);
|
||||
}
|
||||
|
||||
void test_begin_span()
|
||||
{
|
||||
int a[4];
|
||||
BOOST_TEST_EQ((begin(boost::span<int>(&a[0], 4))), &a[0]);
|
||||
}
|
||||
|
||||
void test_end_span()
|
||||
{
|
||||
int a[4];
|
||||
BOOST_TEST_EQ((end(boost::span<int>(&a[0], 4))), &a[4]);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
test_extent();
|
||||
@ -421,8 +409,6 @@ int main()
|
||||
test_cend();
|
||||
test_crbegin();
|
||||
test_crend();
|
||||
test_begin_span();
|
||||
test_end_span();
|
||||
return boost::report_errors();
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user