Skip to content

Clang compilation error in cs_join_intersect.cpp for master #147

Open
@paspro

Description

@paspro

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions