[serialization] BOOST_CLASS_IMPLEMENTATION(*, object_serializable), can this effect be somehow achieved globally for all classes?

I've discovered the BOOST_CLASS_IMPLEMENTATION macro, which allows me to use object_serializable in order to remove extra bookkeeping information for a single class in the archive. Is there a way to apply this effect for all classes in my project globally? I want to avoid the need to type this macro in a thousand times for my project. Best regards Peter

This is defined in the file "level.hpp". If an "implementation level" is not specified a default will be used. The default is assigned depending on whether or not the type is serialized anywhere in the program as a pointer. You could modify your version of "level.hpp" to use a different default. I don' think you really want to do this - but that's how you do it. Robert Ramey Peter Schregle wrote:
I've discovered the BOOST_CLASS_IMPLEMENTATION macro, which allows me to use object_serializable in order to remove extra bookkeeping information for a single class in the archive.
Is there a way to apply this effect for all classes in my project globally? I want to avoid the need to type this macro in a thousand times for my project.
Best regards Peter
participants (2)
-
Peter Schregle
-
Robert Ramey