Skip to content

Commit

Permalink
fix: Linking issue with public symbol sortDetElementsByID (#930)
Browse files Browse the repository at this point in the history
Fix a linking issue in sortDetElementsByID by introducing inline.
  • Loading branch information
paulgessinger committed Aug 17, 2021
1 parent 971c537 commit effda20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Acts {

/// Sort function which sorts dd4hep::DetElement by their ID
/// @param [in,out] det the dd4hep::DetElements to be sorted
void sortDetElementsByID(std::vector<dd4hep::DetElement>& det) {
inline void sortDetElementsByID(std::vector<dd4hep::DetElement>& det) {
sort(det.begin(), det.end(),
[](const dd4hep::DetElement& a, const dd4hep::DetElement& b) {
return (a.id() < b.id());
Expand Down

0 comments on commit effda20

Please sign in to comment.