Skip to content

Commit

Permalink
fix: Fix make_error_code(TrackExtrapolationErrorCategory) (acts-pro…
Browse files Browse the repository at this point in the history
…ject#3076)

Oversight which produces segfaults
  • Loading branch information
andiwand authored and asalzburger committed May 21, 2024
1 parent 5877796 commit c43f501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/src/Utilities/TrackHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ class TrackExtrapolationErrorCategory : public std::error_category {
} // namespace

std::error_code Acts::make_error_code(Acts::TrackExtrapolationError e) {
return {static_cast<int>(e), TrackExtrapolationErrorCategory()};
static const TrackExtrapolationErrorCategory c;
return {static_cast<int>(e), c};
}

0 comments on commit c43f501

Please sign in to comment.