Opened 7 years ago
Closed 7 years ago
#11311 closed Bugs (fixed)
Ambiguous call of std::abs() on QNX
Reported by: | awulkiew | Owned by: | John Maddock |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | abs | Cc: |
Description
../boost/multiprecision/cpp_int/divide.hpp: In function 'typename boost::enable_if_c<((! boost::multiprecision::backends::is_trivial_cpp_int::value) && (! boost::multiprecision::backends::is_trivial_cpp_int::value)), void>::type boost::multiprecision::backends::eval_modulus(boost::multiprecision::backends::cpp_int_backend<MinBits, MaxBits, SignType, Checked, Allocator>&, const boost::multiprecision::backends::cpp_int_backend<MinBits2, MaxBits2, SignType2, Checked2, Allocator2>&, boost::multiprecision::signed_limb_type)': ../boost/multiprecision/cpp_int/divide.hpp:543: error: call of overloaded 'abs(boost::multiprecision::signed_limb_type&)' is ambiguous /usr/qnx650/target/qnx6/usr/include/math.h:624: note: candidates are: double std::abs(double) /usr/qnx650/target/qnx6/usr/include/math.h:692: note: float std::abs(float) /usr/qnx650/target/qnx6/usr/include/math.h:1042: note: long double std::abs(long double) /usr/qnx650/target/qnx6/usr/include/stdlib.h:115: note: int std::abs(int)
Note:
See TracTickets
for help on using tickets.
I believe this should now be fixed in: https://github.com/boostorg/multiprecision/commit/72c817e985091d34894c22cfcd492ba73c7e7fb9