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

How to properly set nested UserObjects? #119

Open
EvilPotat0 opened this issue Feb 23, 2020 · 1 comment
Open

How to properly set nested UserObjects? #119

EvilPotat0 opened this issue Feb 23, 2020 · 1 comment

Comments

@EvilPotat0
Copy link

I'm upgrading my project to the latest version of ponder and in the release notes I saw "Changed UserObject reference semantics.". With this change I'm not sure how I go about setting nested user types. For example if you look at seralise.hpp ArchiveReader::read

if (arrayProperty.elementType() == ValueKind::User) { read(item, arrayProperty.get(object, index).to<UserObject>()); }
With the new semantics, doesn't that Value.to just make a copy and not actually update the object as you'd expect?

If I'm way off and there's documentation you could point me at it would be greatly appreciated.

Thanks

@billyquith
Copy link
Owner

Hi Mr Potato. Sorry about that. I'll have to look into this. I'll try over the weekend but I have to tile my bathroom.

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