We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c36e7 commit 9154e8aCopy full SHA for 9154e8a
1 file changed
src/OrcLib/Buffer.h
@@ -385,9 +385,9 @@ class Buffer
385
friend void swap(InnerStore& left, InnerStore& right) noexcept
386
{
387
std::array<_T, _DeclElts> temp;
388
- std::copy(std::begin(left.m_Elts), std::end(left.m_Elts), std::begin(temp));
389
- std::copy(std::begin(right.m_Elts), std::end(right.m_Elts), std::begin(temp));
390
- std::copy(std::begin(temp), std::end(temp), std::begin(temp));
+ std::copy(std::cbegin(left.m_Elts), std::cend(left.m_Elts), std::begin(temp));
+ std::copy(std::cbegin(right.m_Elts), std::cend(right.m_Elts), std::begin(left.m_Elts));
+ std::copy(std::cbegin(temp), std::cend(temp), std::begin(right.m_Elts));
391
}
392
393
constexpr InnerStore() = default;
0 commit comments