mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fix build warning from gcc about std::copy
This commit is contained in:
@@ -34,7 +34,7 @@ class YAML_CPP_API Binary {
|
|||||||
m_data.swap(rhs);
|
m_data.swap(rhs);
|
||||||
rhs.clear();
|
rhs.clear();
|
||||||
rhs.resize(m_unownedSize);
|
rhs.resize(m_unownedSize);
|
||||||
std::copy(m_unownedData, m_unownedData + m_unownedSize, &rhs[0]);
|
std::copy(m_unownedData, m_unownedData + m_unownedSize, rhs.begin());
|
||||||
m_unownedData = 0;
|
m_unownedData = 0;
|
||||||
m_unownedSize = 0;
|
m_unownedSize = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user