From c7752ca336b987cdf3fd793d4c9828d67ec1cbd7 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Sat, 24 Jan 2015 11:14:53 -0600 Subject: [PATCH] Fix build warning from gcc about std::copy --- include/yaml-cpp/binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/yaml-cpp/binary.h b/include/yaml-cpp/binary.h index d236a0c..29d5dbd 100644 --- a/include/yaml-cpp/binary.h +++ b/include/yaml-cpp/binary.h @@ -34,7 +34,7 @@ class YAML_CPP_API Binary { m_data.swap(rhs); rhs.clear(); 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_unownedSize = 0; } else {