Skip to content

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

@daeho-ro

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.
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