dropbox / json11

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

Cannot overload nullptr_t with int, looser throw specification #11

Closed codemercenary closed 10 years ago

codemercenary commented 10 years ago

This is because the "int" overload of this could potentially be called, as in the following circumstance:

Json myJson(NULL);

This creates a compiler error on Ubuntu gcc 4.8 due to the aforementioned potential ambiguity.

codemercenary commented 10 years ago

Nevermind, looks like there might be a GCC defect. Further investigation required.