3 ms·
One example is in: https://github.com/arc80/plywood/blob/master/repos/plywood/src/web/cook-docs/ply-web-cook-docs/WebCookerIndex.h#L56 https://github.com/arc80/
by preshing 6y ago
One example is in: https://github.com/arc80/plywood/blob/master/repos/plywood/src/web/cook-docs/ply-web-cook-docs/WebCookerIndex.h#L56 https://github.com/arc80/plywood/blob/master/repos/plywood/s...
Here, only one data member is meant to be serialized. The others members are there to accelerate lookups into the first data member. (Full disclosure: that structure isn't actually serialized yet, but the Arc80 Engine which uses Plywood has similar examples.)
- BruceEel 6y agoInteresting! Could sufficiently enhanced compile-time reflection (say we do get supercharged CT reflection in C++2b*) be used to implement fully transparent&automatic versioning in serialization frameworks? I know very little on this subject but I think boost serialization, though capable of handling multiple versions of a given class, requires manually 'tagging' source files as being say, version 1,2,etc.
- pjmlp 6y agoThanks!