Skip to content

Commit

Permalink
fix concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 4, 2023
1 parent 3e024c1 commit c9df58e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ concept CommonMultiTrajectoryBackend = requires(const T& cv, HashedString key,

{ cv.hasColumn_impl(key) } -> std::same_as<bool>;

{ cv.dynamicKeys_impl() } -> std::same_as<std::vector<Acts::HashedString>>;
{
cv.dynamicKeys_impl()
} -> std::same_as<const std::vector<Acts::HashedString>&>;
};

template <typename T>
Expand Down
4 changes: 3 additions & 1 deletion Core/include/Acts/EventData/TrackContainerBackendConcept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ concept ConstTrackContainerBackend = requires(const T& cv, HashedString key,

{ cv.referenceSurface_impl(itrack) } -> std::same_as<const Surface*>;

{ cv.dynamicKeys_impl() } -> std::same_as<std::vector<Acts::HashedString>>;
{
cv.dynamicKeys_impl()
} -> std::same_as<const std::vector<Acts::HashedString>&>;
};

template <typename T>
Expand Down

0 comments on commit c9df58e

Please sign in to comment.