Is there a way to apply serialisation to a type that is provided by a third-party library (i.e. shouldn't be able to modify the class' code) and has non-default constructor?
I have searched the documentation, stack overflow and google group but haven't been able to find something that doesn't solve this with `friend`.
An example class would be:
class ThirdPartyClass
{
public:
ThirdPartyClass(SomeType a, SomeType b);
SomeType getA() const;
SomeType getB() const;
private:
SomeType a;
SomeType b;
};
Again, the constraint here is to avoid forking the third party library to befriend cereal, i.e. it should be done with external functions if I understand correctly.
Thanks in advance!