FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix ambiguous std::abs call in confidenceCC by daeho-ro · Pull Request #3710 · arrayfire/arrayfire · GitHub

Fix ambiguous std::abs call in confidenceCC - #3710

Open
daeho-ro wants to merge 1 commit into
arrayfire:masterfrom
daeho-ro:fix-abs-ambiguity
Open

Fix ambiguous std::abs call in confidenceCC#3710
daeho-ro wants to merge 1 commit into
arrayfire:masterfrom
daeho-ro:fix-abs-ambiguity

Conversation

Copy link
Copy Markdown

Description

std::abs(x) with an explicit template argument is rejected as ambiguous by newer libc++ (e.g. the macOS 26 SDK), which brings the integer abs overloads into scope. s1var/validsVar are already CT, so drop the argument and let std::abs resolve the overload.

Changes to Users

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

std::abs<CT>(x) with an explicit template argument is rejected as
ambiguous by newer libc++ (e.g. the macOS 26 SDK), which brings the
integer abs overloads into scope. s1var/validsVar are already CT, so
drop the argument and let std::abs resolve the <cmath> overload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL