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

Replace field_offset macro with std::mem::offset_of #7

Open
Techcable opened this issue Jul 14, 2024 · 0 comments
Open

Replace field_offset macro with std::mem::offset_of #7

Techcable opened this issue Jul 14, 2024 · 0 comments

Comments

@Techcable
Copy link
Member

Techcable commented Jul 14, 2024

The latter is preferable since it is in the standard-library and a compiler builtin.

I think there are some safety issues with the current implementation of field_offset!.

However this is blocked on the offset_of_nested feature.

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

1 participant