Fix missing const ref

This commit is contained in:
Vincent Cogne 2016-06-09 16:06:02 +02:00
parent 12f1164bfc
commit 13fa86fee3

View File

@ -247,7 +247,7 @@ template <typename T, std::size_t N>
struct convert<std::array<T, N>> {
static Node encode(const std::array<T, N>& rhs) {
Node node(NodeType::Sequence);
for (auto element : rhs) {
for (const auto& element : rhs) {
node.push_back(element);
}
return node;