billyquith/ponder

How to properly set nested UserObjects?

EvilPotat0 opened this issue · 1 comments

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

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.