Re: [Boost-users] Usingboost::serializationinreal-timewithoutallocating memory
Stefan Strasser writes:
sure, it's the best serialization solution I know and the template technique trumps any reflection based solution (even if c++ had reflection).
In what way? The "Usage" section of this page, http://webEbenezer.net/comparison.htmlhttp://webebenezer.net/comparison.html, gives an example of how it's possible to produce a cleaner solution than that afforded by the Boost Serialization library. The Ebenezer approach to the bus_stop example is twelve lines less than the Boost Serialization approach. Regards, Brian Wood www.webEbenezer.net http://www.webebenezer.net/ "Then Samuel took a rock and set it up between Mizpah and Shen. He named it Ebenezer [Rock of Help] and said, 'Until now the L-RD has helped us.'"
Am Tuesday 22 September 2009 00:35:51 schrieb Brian Wood:
In what way?
The "Usage" section of this page, http://webEbenezer.net/comparison.html<http://webebenezer.net/comparison.ht ml>, gives an example of how it's possible to produce a cleaner solution than that afforded by the Boost Serialization library. The Ebenezer approach to the bus_stop example is twelve lines less than the Boost Serialization approach.
that's the same approach. code seems to be written by an external code generator instead of a c++ compiler, but there is no difference beyond that, is there? .NET for example implements serialization based on its reflection mechanism. it iterates at runtime through the (reflected) fields of a class and extracts the data. I don't think an external code generator is "cleaner".
participants (2)
-
Brian Wood
-
Stefan Strasser