Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix many, many obvious test bugs #1212

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

rdoeffinger
Copy link
Contributor

Needed for tests to pass with 128 bit long double types

Needed for tests to pass with 128 bit long double types
Copy link
Member

@mborland mborland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes all look reasonable to me. I approved the CI run.

@mborland
Copy link
Member

Only CI failure is fail to clone on an s390x device (happens semi-regularly). Merging.

@mborland mborland merged commit a428222 into boostorg:develop Oct 16, 2024
76 of 77 checks passed
@@ -536,7 +547,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(atan2_function, T, all_float_types) {
auto y = y_sampler.next();

auto autodiff_v = atan2(make_fvar<T, m>(x), make_fvar<T, m>(y));
auto anchor_v = atan2(x, y);
auto anchor_v = atan2_wrap(x, y);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: what was the issue here? Surely the using std::atan2 should take care of things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, maybe I should have added a comment. The problem is the boost types (real_concept I think in this case), they do not add a std::atan2 overload, so it fails.
There is a using std::atan2 but that has no effect in the presence of the C function, at least for this.
Maybe there is a more clever way, or maybe boost should provide a single overload that works for everything so no such hacks are needed...

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.

3 participants