Skip to content

Commit

Permalink
fix: add inline keyword to function PhotonConversion::generateChildre…
Browse files Browse the repository at this point in the history
…n in PhotonConversion.hpp (#3516)

A possibily missing inline keyword on PhotonConversion::generateChildren
in PhotonConversion.hpp may lead to a multiple definition error from
cmake. Add back this keyword.

Co-authored-by: Andreas Stefl <stefl.andreas@gmail.com>
  • Loading branch information
Biblehome and andiwand authored Aug 19, 2024
1 parent a768373 commit d3df140
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Particle::Vector3 PhotonConversion::generateChildDirection(
return direction;
}

std::array<Particle, 2> PhotonConversion::generateChildren(
inline std::array<Particle, 2> PhotonConversion::generateChildren(
const Particle& photon, Scalar childEnergy,
const Particle::Vector3& childDirection) const {
using namespace Acts::UnitLiterals;
Expand Down

0 comments on commit d3df140

Please sign in to comment.