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 Ragansu committed Apr 19, 2024
1 parent bba478f commit e62321b
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 e62321b

Please sign in to comment.