flexible-collision-library / fcl

Flexible Collision Library
https://flexible-collision-library.github.io/
Other
1.39k stars 417 forks source link

[trivial fix] Fix build when ccd_real_t == float #498

Closed v4hn closed 3 years ago

v4hn commented 3 years ago

libccd supports single or double precision builds. It seems like the developers build it with double precision. But if you actually require double precision you should check for it in the configuration.

Without the patch the build fails because stl does not support std::max(double, float) (problems with the initializer_list overload being preferred). A fact that by itself is rather frustrating as well...


This change is Reviewable

v4hn commented 3 years ago

I just pushed an additional line break.

Sorry, I'm not sure whether I'm expected to do anything at reviewable because the page keeps loading forever saying "Resuming session". :question: