Skip to content

Commit

Permalink
fix: Move default constructor impl in CPP file (#3752)
Browse files Browse the repository at this point in the history
This (somehow) fixes a faulty `-Wnull-dereference` case in GCC 11
  • Loading branch information
paulgessinger authored Oct 18, 2024
1 parent 3fadd3e commit 1d1ccbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/include/Acts/Geometry/CylinderVolumeBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class CylinderVolumeBounds : public VolumeBounds {
/// Copy Constructor
///
/// @param cylbo is the source cylinder volume bounds for the copy
CylinderVolumeBounds(const CylinderVolumeBounds& cylbo) = default;
CylinderVolumeBounds(const CylinderVolumeBounds& cylbo);

~CylinderVolumeBounds() override = default;
CylinderVolumeBounds& operator=(const CylinderVolumeBounds& cylbo) = default;
Expand Down
3 changes: 3 additions & 0 deletions Core/src/Geometry/CylinderVolumeBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,7 @@ void CylinderVolumeBounds::set(
}
}

CylinderVolumeBounds::CylinderVolumeBounds(const CylinderVolumeBounds& cylbo) =
default;

} // namespace Acts

0 comments on commit 1d1ccbd

Please sign in to comment.