diff --git a/gammapkt.cc b/gammapkt.cc index 112cb05ac..5fdec27ee 100644 --- a/gammapkt.cc +++ b/gammapkt.cc @@ -340,7 +340,7 @@ auto thomson_angle() -> double { } // scattering a direction through angle theta. -[[nodiscard]] auto scatter_dir(const std::array dir_in, const double cos_theta) -> std::array { +[[nodiscard]] auto scatter_dir(const std::array &dir_in, const double cos_theta) -> std::array { // begin with setting the direction in coordinates where original direction // is parallel to z-hat.