Skip to content

Commit c7752ca

Browse files
committed
Fix build warning from gcc about std::copy
1 parent a499d2e commit c7752ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/yaml-cpp/binary.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class YAML_CPP_API Binary {
3434
m_data.swap(rhs);
3535
rhs.clear();
3636
rhs.resize(m_unownedSize);
37-
std::copy(m_unownedData, m_unownedData + m_unownedSize, &rhs[0]);
37+
std::copy(m_unownedData, m_unownedData + m_unownedSize, rhs.begin());
3838
m_unownedData = 0;
3939
m_unownedSize = 0;
4040
} else {

0 commit comments

Comments
 (0)