Opened 12 years ago
Last modified 10 years ago
#5176 new Bugs
test_assignment assumes fabs(float)
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | To Be Determined | Component: | uBLAS |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
As per [lib.c.math] paragraphs 5 and 6, there are float and long double overloads for fabs():
float fabs (float); long double fabs (long double);
libstdc++ apparently does not have the required overloads and is seems
libs/numeric/ublas/test/test_assignment.cpp
relies on this.
Patch provided.
Attachments (1)
Change History (5)
by , 12 years ago
Attachment: | test_assignment.cpp.patch added |
---|
comment:2 by , 12 years ago
Component: | numeric → uBLAS |
---|---|
Owner: | changed from | to
comment:4 by , 10 years ago
This breaks a couple of tests with non-gcc compilers. So one should call it a bug. A different fix might be calling std::abs instead of std::fabs.
Note:
See TracTickets
for help on using tickets.
Add cast so fabs() call is proper.