News for hackers. Stuff that matters.
Re:JSON for Modern C++ version 3.10.0 by rualca on Thursday August 19, 2021 @08:08AM (#28232778)
Aiming at C++11 is not a reasonable definition of "modern", as it was C++'s second ISO standard that was published a decade ago and which has since seen between two and three major updates (depending on the opinions on c++14)
Re:JSON for Modern C++ version 3.10.0 by nlohmann on Thursday August 19, 2021 @08:13AM (#28232814)
It's not the "aiming at C++11", but rather "Write code that does not look odd in a code base that is using constructs from C++11, C++14, C++17, etc." - The library uses C++11 to implement an API that should not feel weird when used together with other containers from the STL.
Re:JSON for Modern C++ version 3.10.0 by maleldil on Thursday August 19, 2021 @08:22AM (#28232881)
C++11 was a huge shift in how C++ is written, and term coined for "code written using the new techniques" was "Modern C++". Whether you think that term should instead mean "the latest C++ version" is a different matter altogether.
Re:JSON for Modern C++ version 3.10.0 by bobnamob on Thursday August 19, 2021 @08:21AM (#28232868)
In C++ land "modern" has become synonymous with post 11. Effectively a domain specific definition. Reasonable considering the difference between pre and post 11. Pre and post 20 will probably be treated similarly in a decade