QuackatronHQ / Gigarepo

Found C-style array declaration in place of std::array or std::vector CXX-W2066
Anti-pattern
Major
1 occurrence in this check
do not declare C-style arrays, use std::array<> instead
23  Derived(const Derived &other) {}
24};
25
26float foo(float a[100]) {27  // Possible loss of precision due the type-folding from `float` to `int`".
28  // Replace last argument with 0.0
29  return std::accumulate(a, a + 99, 0);