Hi, the following does not build on OSX with C++14: ``` #include "nlohmann.json.hpp" using json = nlohmann::basic_json<std::map, std::vector, std::string, bool, int32_t, float>; int main(int argc, const char * argv[]) { json j; j["int_1"] = 1; << Conversion from 'int' to 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, int, float, std::allocator>' is ambiguous return 0; } ``` I'd rather use number type _int32_t_ instead of the default _int64_t_ (which builds properly). Do you have any idea how to fix this issue? Thank you, Arnaud
Activity
nlohmann commentedon Jun 15, 2015
I understand the problem - it is a conflict with the solution to issue #71. I see what I can do.
[-]Build issue on OSX with C++14[/-][+]Nonstandard integer type[/+]nlohmann commentedon Jun 15, 2015
Your code example should work now - I added a respective test case.
arnaudbrejeon commentedon Jun 15, 2015
It's working perfectly. Thank you for your super-fast feedback.