Skip to content

Deprecate functions that rely on undefined behavior#735

Open
sweemer wants to merge 1 commit into
quickfix:masterfrom
sweemer:deprecate-ub
Open

Deprecate functions that rely on undefined behavior#735
sweemer wants to merge 1 commit into
quickfix:masterfrom
sweemer:deprecate-ub

Conversation

@sweemer

@sweemer sweemer commented May 26, 2026

Copy link
Copy Markdown
Contributor

FIELD_GET_PTR, FIELD_GET_REF, and FieldMap::getField<T>() all obtain typed field references by casting a stored FieldBase object to a derived type, which is undefined behavior.

I have marked these as deprecated and updated call sites to use the safe getField(T& field) function instead.

This PR is a prerequisite for #733.

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

Successfully merging this pull request may close these issues.

1 participant