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

Ensure std::exp can be found after including <cmath> #476

Closed
wants to merge 1 commit into from

Conversation

jwakely
Copy link

@jwakely jwakely commented Aug 10, 2021

As noted in #462, including <cmath> only guarantees that std::exp is
declared, so calling exp(double) unqualified is not portable. This adds
a using-declaration for std::exp so that unqualified calls are
guaranteed to work.

As noted in rime#462, including <cmath> only guarantees that std::exp is
declared, so calling exp(double) unqualified is not portable. This adds
a using-declaration for std::exp so that unqualified calls are
guaranteed to work.
@lotem lotem closed this in af771c7 Jan 15, 2022
lotem added a commit that referenced this pull request Jan 15, 2022
As noted in #462, including <cmath> only guarantees that std::exp is
declared, so calling exp(double) unqualified is not portable.

Squashed commit with a style change to the original PR:

commit 8b9d48c0340f3fb82de59a6f7ec71ddfd86a602f
Author: Chen Gong <chen.sst@gmail.com>
Date:   Sun Jan 16 00:49:47 2022 +0800

commit df4fe3e
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 10 10:18:38 2021 +0100

Closes #476
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