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

intrusive serialization #7

Open
bodomartin opened this issue Mar 1, 2017 · 1 comment
Open

intrusive serialization #7

bodomartin opened this issue Mar 1, 2017 · 1 comment

Comments

@bodomartin
Copy link

when trying to use intrusive serialization (e.g. with a member template 'serialize') I fail to compile the code. I have put a demo working with boost::archive::text_iarchive / test_oarchive in my fork (latest develop)

https://github.com/bodomartin/trial.protocol/

which is otherwise synced with your latest develop.
(using gcc 5.4.0, linux) - I noticed that when using a private serialize template the serializer_overloader does not find the member function? The boost serialization lib uses the 'access' friend.

@breese
Copy link
Owner

breese commented Mar 18, 2018

I still have not found a good solution to this problem.

While I can easily change various templates to call the access members, the problem is that I need to detect if the class has the serialize or load/save members. Otherwise I get ambiguous template matching errors on other classes like std::string.

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