Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization #267

Open
FoxMarts opened this issue Mar 11, 2019 · 1 comment
Open

Serialization #267

FoxMarts opened this issue Mar 11, 2019 · 1 comment

Comments

@FoxMarts
Copy link

Hello, I'm trying to save the model created in the RFTutorial using the example of the tutorial serialization, but an error appears in make.

error: ‘polymorphic_text_oarchive’ is not a member of ‘boost::archive’
boost::archive::polymorphic_text_oarchive oa(ofs);

Can you help me solve it?thanks

@Andurian
Copy link

There seems to be a problem with certain boost versions (according to Core/ISerializable.h between 1.56 and 1.58) where you have to use boost::archive::text_oarchive instead of boost::archive::polymorphic_text_oarchive.

You can (and maybe should) use shark::TextOutArchive and shark::TextInArchive which automatically typedefs to the correct version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants