Skip to content

Commit

Permalink
Convert call to use argument dependent lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Jul 30, 2018
1 parent fd39c2e commit 1b90f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/hep/mc/internal/accumulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ class accumulator<T, false>
template <typename I, typename P>
T invoke(I& integrand, P const& point)
{
using std::isfinite;

// call the integrand function with the supplied point. No distributions
// are generated here
T value = integrand.function()(point);
Expand All @@ -217,7 +219,7 @@ class accumulator<T, false>
{
value *= point.weight();

if (std::isfinite(value))
if (isfinite(value))
{
accumulate(sums_[0], sums_[1], sums_[2], value);
++finite_calls_;
Expand Down

0 comments on commit 1b90f9a

Please sign in to comment.