"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "736a37bafb238632c437f6c6b42958814351f7c2"
Commit c7752ca3 authored by Jesse Beder's avatar Jesse Beder
Browse files

Fix build warning from gcc about std::copy

parent a499d2ed
...@@ -34,7 +34,7 @@ class YAML_CPP_API Binary { ...@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment