...
+ *accumulate takes its result type from the initial value, so 0.5 + 0.5 + 0.5 returns the int 0. fold_left returns 1.5. GCC 16.2 and Clang 22.1 did not warn. MSVC and clang-tidy did.
...
+ *accumulate takes its result type from the initial value, so 0.5 + 0.5 + 0.5 returns the int 0. fold_left returns 1.5. GCC 16.2 and Clang 22.1 did not warn. MSVC and clang-tidy did.