Skip to content

AthLinks: Avoid gcc12 warning.

Scott Snyder requested to merge ssnyder/athena:gcc12.AthLinks-20220325 into master

ElementLink::isValid was implemented by calling cptr(). However, with gcc12, this was sometimes giving dangling-pointer warnings when we were returning ElementLink instances by value, as for example happens with ElementLinkVector. Rework slightly to avoid this. Doing it like this allows us to anyway save a little work in isValid().

Merge request reports

Loading