Skip to content

static_assert on forward iterator requirement in mean rather than silently give the wrong answer#1427

Merged
mborland merged 2 commits into
developfrom
1421
Jul 21, 2026
Merged

static_assert on forward iterator requirement in mean rather than silently give the wrong answer#1427
mborland merged 2 commits into
developfrom
1421

Conversation

@mborland

Copy link
Copy Markdown
Member

Closes: #1421

@mborland mborland added the bug label Jul 21, 2026
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.40%. Comparing base (b430a9f) to head (3718e21).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1427   +/-   ##
========================================
  Coverage    95.40%   95.40%           
========================================
  Files          829      829           
  Lines        69083    69083           
========================================
  Hits         65908    65908           
  Misses        3175     3175           
Files with missing lines Coverage Δ
...de/boost/math/statistics/univariate_statistics.hpp 99.48% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b430a9f...3718e21. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mborland
mborland merged commit b28311b into develop Jul 21, 2026
75 checks passed
@mborland
mborland deleted the 1421 branch July 21, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suprising behavior of boost::math::statistics::mean()

1 participant