dropbox / json11

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

Require presence of a begin() member function for map/vector conversions. #110

Closed j4cbo closed 7 years ago

j4cbo commented 7 years ago

Because this could otherwise false-positive on things like std::optional, which also has a value_type member type, but is not a container.

Fixes #109.

smarx commented 7 years ago

Automated message from Dropbox CLA bot

@j4cbo, it looks like you've already signed the Dropbox CLA. Thanks!

j4cbo commented 7 years ago

Changed to look directly at the return value of begin() instead of depending on typedefs.