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

Add more robust type difference detection #13

Open
liss-h opened this issue Nov 21, 2023 · 0 comments
Open

Add more robust type difference detection #13

liss-h opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@liss-h
Copy link

liss-h commented Nov 21, 2023

Currently metall stores typeid(T).name() and typeid(T).hash_code() alongside the object to check if the type of objects is still the same.

This however does not work when the definition of a type changes, because the hash_code does not consider object layout.

Add a more robust way to detect object changes, detecting all changes is impossible but we can at least try improving it by including the
layout of the type in the hash.

@liss-h liss-h added the enhancement New feature or request label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant