sgorsten / linalg

linalg.h is a single header, public domain, short vector math library for C++
The Unlicense
849 stars 68 forks source link

Compilation with clang fails on OS X (error: ambiguous call to std::abs()) #7

Closed egparedes closed 7 years ago

egparedes commented 7 years ago

I found this problem trying to compile the tests with clang (Apple LLVM version 8.0.0 / clang-800.0.42.1) on my OS 10.11.6 workstation. The compilation with GNU g++ works ok on the same machine.

I could fix it on my machine by including as commented here:

http://stackoverflow.com/questions/30084577/ambiguous-call-to-abs

Thanks for the library.

sgorsten commented 7 years ago

Thanks for identifying this issue, and for your interest in this library.

Fixed as of 539f659496f4490972b812f1a2d769589894ae51.