Skip to content

Fix -Wpotentially-evaluated-expression in errors - #305

Merged
Jakob-Unfried merged 1 commit into
mainfrom
fix_sideeffects
Oct 6, 2026
Merged

Jakob-Unfried merged 1 commit into
mainfrom
fix_sideeffects

Conversation

@Jakob-Unfried

Copy link
Copy Markdown
Member

Bind the dereferenced smart pointer to a reference before passing it to typeid, so operator* is not evaluated inside the typeid operand.

Bind the dereferenced smart pointer to a reference before passing it
to typeid, so operator* is not evaluated inside the typeid operand.
@Jakob-Unfried
Jakob-Unfried merged commit ae062e4 into main Oct 6, 2026
4 checks passed
@Jakob-Unfried
Jakob-Unfried deleted the fix_sideeffects branch October 6, 2026 15:20
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