This commit is contained in:
Niels 2016-03-06 20:03:05 +01:00
parent 10a884473e
commit c6a6a024f7

View file

@ -204,7 +204,7 @@ for (json::iterator it = j.begin(); it != j.end(); ++it) {
}
// range-based for
for (auto element : j) {
for (auto& element : j) {
std::cout << element << '\n';
}