Skip to content

Commit

Permalink
refactor: Allow TrackState copyFrom for different MTJs (#2204)
Browse files Browse the repository at this point in the history
This allows copying between MTJ backends by relaxing the template arguments.
  • Loading branch information
paulgessinger committed Jun 14, 2023
1 parent 80cc195 commit d7f13e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/MultiTrajectory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ class TrackStateProxy {
/// an exception is thrown.
/// @note The mask parameter will not cause a copy of components that are
/// not allocated in the source track state proxy.
template <bool RO = ReadOnly, bool ReadOnlyOther,
template <typename track_state_proxy_t, bool RO = ReadOnly,
typename = std::enable_if_t<!RO>>
void copyFrom(TrackStateProxy<Trajectory, M, ReadOnlyOther> other,
void copyFrom(const track_state_proxy_t& other,
TrackStatePropMask mask = TrackStatePropMask::All,
bool onlyAllocated = true) {
using PM = TrackStatePropMask;
Expand Down

0 comments on commit d7f13e5

Please sign in to comment.