Skip to content
Snippets Groups Projects

Layers avoid use after move

Merged Christos Anastopoulos requested to merge ATLAS-EGamma/athena:use_after_move into master

I assume this is used only in the ITK path.

The change is

, Layer(std::move(surfaceArray), thickness, std::move(olap), laytyp)
 .... 
{
  if (!ades && surfaceArray) <-- [surfaceArray has been moved from above]

to

, Layer(std::move(surfaceArray), thickness, std::move(olap), laytyp)
 .... 
{
  if (!ades && m_surfaceArray) <-- [m_surfaceArray has been moved to]

More or less the issue is this [https://godbolt.org/z/jqavj6YGe]

ping @tstreble @pagessin

Edited by Christos Anastopoulos

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading