From 13fa86fee34cf8292d6a7fba1ad50bcdaac60869 Mon Sep 17 00:00:00 2001 From: Vincent Cogne Date: Thu, 9 Jun 2016 16:06:02 +0200 Subject: [PATCH] Fix missing const ref --- include/yaml-cpp/node/convert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;