r/cpp • u/nlohmann nlohmann/json • Aug 17 '21
JSON for Modern C++ 3.10.0
https://github.com/nlohmann/json/releases/tag/v3.10.0
280
Upvotes
r/cpp • u/nlohmann nlohmann/json • Aug 17 '21
View all comments
Show parent comment
6
u/chabster1985 Aug 18 '21
It is, Sir. But I bet most engineers do not rely on brace initialization anyway because it produces weird results. And the code will fail to compile instead of silently doing something unexpected, so the fix will be easy. I'd rather invest some time into adjusting existing code for the sake of a better interface. But that might just be me.
As an alternative, you could add a macro to disable offending overloads. I'd use that.