dropbox / json11

A tiny JSON library for C++11.
MIT License
2.55k stars 615 forks source link

iterate over pair of const string and Json #27

Closed k0zmo closed 9 years ago

k0zmo commented 9 years ago

Use auto or std::pair<const string, Json> (same as value_type) to iterate over map collection. Because there's a type mismatch (no const modifier) each iteration creates a temporary pair.

j4cbo commented 9 years ago

Thanks, good catch! Can you fill out our CLA at https://opensource.dropbox.com/cla/ and then I can merge this?

k0zmo commented 9 years ago

Done

j4cbo commented 9 years ago

Thanks!