Comments on: Immutable serialisable data structures in C++11 http://vitiy.info/immutable-data-and-serialisation-in-cpp11/ Programming, architecture and design (С++, QT, .Net/WPF, Android, iOS, NoSQL, distributed systems, mobile development, image processing, etc...) Thu, 23 Jul 2015 10:08:05 +0000 hourly 1 https://wordpress.org/?v=5.4.2 By: Victor Laskin http://vitiy.info/immutable-data-and-serialisation-in-cpp11/#comment-45927 Thu, 23 Jul 2015 09:01:00 +0000 http://vitiy.info/?p=575#comment-45927 Ok – I just put something on github. Here is my old json lib – https://gist.github.com/VictorLaskin/1fb078d7f4ac78857f48, modified a bit to support the types I needed at the moment. So you might need to add additional type specializations inside.

Next gist is implementation and usage example – https://gist.github.com/VictorLaskin/48d1336e8b6eea16414b

May be something is missing – I’ll check later.

]]>
By: panik http://vitiy.info/immutable-data-and-serialisation-in-cpp11/#comment-45926 Wed, 22 Jul 2015 22:25:00 +0000 http://vitiy.info/?p=575#comment-45926 So where is the source code? 😉

]]>
By: Victor Laskin http://vitiy.info/immutable-data-and-serialisation-in-cpp11/#comment-45925 Tue, 30 Jun 2015 10:25:00 +0000 http://vitiy.info/?p=575#comment-45925 Unfortunately you can’t generate bunch of methods with specific names which are dependent from structure’s fields names. You can create some immutable tuple and implement constructors, etc, but the problem is that if you want nice names for for methods you need macro 🙁 Also short class declaration is possible through macro only. If there is some other way I hope someone will share it here.

]]>
By: Šimon Tóth http://vitiy.info/immutable-data-and-serialisation-in-cpp11/#comment-45924 Tue, 30 Jun 2015 09:31:00 +0000 http://vitiy.info/?p=575#comment-45924 Hmm, interesting. This really sounds like something that should be possible with just templates without macros. Any reason why you are using macros?

]]>