mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixes for review feedback.
This commit is contained in:
parent
9a29712022
commit
383dc507a4
@ -2058,7 +2058,7 @@ private:
|
|||||||
const ArrayView * m_validator;
|
const ArrayView * m_validator;
|
||||||
void validateThis() const
|
void validateThis() const
|
||||||
{
|
{
|
||||||
fail_fast_assert(m_pdata >= m_validator->m_pdata && m_pdata < m_validator->m_pdata + m_validator->size());
|
fail_fast_assert(m_pdata >= m_validator->m_pdata && m_pdata < m_validator->m_pdata + m_validator->size(), "iterator is out of range of the array");
|
||||||
}
|
}
|
||||||
contiguous_array_view_iterator (const ArrayView *container, bool isbegin = false) :
|
contiguous_array_view_iterator (const ArrayView *container, bool isbegin = false) :
|
||||||
m_pdata(isbegin ? container->m_pdata : container->m_pdata + container->size()), m_validator(container) { }
|
m_pdata(isbegin ? container->m_pdata : container->m_pdata + container->size()), m_validator(container) { }
|
||||||
|
@ -321,7 +321,7 @@ SUITE(array_view_tests)
|
|||||||
CHECK(sav[1] == 2);
|
CHECK(sav[1] == 2);
|
||||||
|
|
||||||
#if _MSC_VER > 1800
|
#if _MSC_VER > 1800
|
||||||
strided_array_view<const int, 1> sav_c{ array_view<const int>{src}, strided_bounds<1>{2, 1} };
|
strided_array_view<const int, 1> sav_c{ {src}, {2, 1} };
|
||||||
#else
|
#else
|
||||||
strided_array_view<const int, 1> sav_c{ array_view<const int>{src}, strided_bounds<1>{2, 1} };
|
strided_array_view<const int, 1> sav_c{ array_view<const int>{src}, strided_bounds<1>{2, 1} };
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user