Skip to content

Commit

Permalink
fix TrackExtrapolationErrorCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 4, 2024
1 parent 1549ccb commit 38faa77
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 38faa77

Please sign in to comment.