diff --git a/include/yaml-cpp/node/convert.h b/include/yaml-cpp/node/convert.h index eae692a..e3547dd 100644 --- a/include/yaml-cpp/node/convert.h +++ b/include/yaml-cpp/node/convert.h @@ -247,7 +247,7 @@ template struct convert> { static Node encode(const std::array& rhs) { Node node(NodeType::Sequence); - for (auto element : rhs) { + for (const auto& element : rhs) { node.push_back(element); } return node;