Skip to content

Clang compilation error in cs_join_intersect.cpp for master #147

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

Open
paspro opened this issue Apr 16, 2025 · 0 comments
Open

Clang compilation error in cs_join_intersect.cpp for master #147

paspro opened this issue Apr 16, 2025 · 0 comments

Comments

@paspro
Copy link
Contributor

paspro commented Apr 16, 2025

Clang compilation error for the master version:

../../../src/mesh/cs_join_intersect.cpp:2249:29: error: call to 'min' is ambiguous
 2249 |   stats->box_mem_final[1] = cs::min(stats->box_mem_final[1], _mem_final[1]);
      |                             ^~~~~~~
../../../src/base/cs_math.h:458:1: note: candidate function
  458 | min(const double  a,
      | ^
../../../src/base/cs_math.h:465:1: note: candidate function
  465 | min(const float  a,
      | ^
../../../src/mesh/cs_join_intersect.cpp:2250:29: error: call to 'max' is ambiguous
 2250 |   stats->box_mem_final[2] = cs::max(stats->box_mem_final[2], _mem_final[2]);
      |                             ^~~~~~~
../../../src/base/cs_math.h:486:1: note: candidate function
  486 | max(const double  a,
      | ^
../../../src/base/cs_math.h:493:1: note: candidate function
  493 | max(const float  a,
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

No branches or pull requests

1 participant