We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a499d2e commit c7752caCopy full SHA for c7752ca
include/yaml-cpp/binary.h
@@ -34,7 +34,7 @@ class YAML_CPP_API Binary {
34
m_data.swap(rhs);
35
rhs.clear();
36
rhs.resize(m_unownedSize);
37
- std::copy(m_unownedData, m_unownedData + m_unownedSize, &rhs[0]);
+ std::copy(m_unownedData, m_unownedData + m_unownedSize, rhs.begin());
38
m_unownedData = 0;
39
m_unownedSize = 0;
40
} else {
0 commit comments