Skip to content

Make implicit integral to Real conversions explicit - #1439

Merged
mborland merged 1 commit into
developfrom
implicit_conversions
Aug 26, 2026
Merged

Make implicit integral to Real conversions explicit#1439
mborland merged 1 commit into
developfrom
implicit_conversions

Conversation

@mborland

Copy link
Copy Markdown
Member

We are already properly casting the return type, so apply that to the initial conditions. Makes all of the statistics functions work without any workaround with Boost.Decimal.

@mborland

Copy link
Copy Markdown
Member Author

Several instances of this failure in jso_test which should have been completely unaffected by this change:

====== BEGIN OUTPUT ======
terminate called after throwing an instance of 'std::invalid_argument'
  what():  ../../../boost/math/optimization/jso.hpp:89:validate_jso_parameters: There must be more individuals in the population than threads.
Testing jSO on Ackley function . . .
Aborted (core dumped)

EXIT STATUS: 134
====== END OUTPUT ======

@mborland
mborland merged commit 9b192b0 into develop Aug 26, 2026
75 of 76 checks passed
@mborland
mborland deleted the implicit_conversions branch August 26, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant