Opened 11 years ago
Last modified 10 years ago
#6807 new Patches
interval rounded_arith.hpp compilation issues (clang)
Reported by: | Owned by: | Boris Gubenko | |
---|---|---|---|
Milestone: | Boost 1.52.0 | Component: | interval |
Version: | Boost 1.50.0 | Severity: | Problem |
Keywords: | interval, clang, to_int | Cc: | l.digaspero@… |
Description
It appears that the rounded _artith_* classes fail to compile (at least with my version of clang : Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn))
The issue appears for both rounded_arith_std and rounded_arith_opp when they try to call the "to_int" static method of the Rounding mother class (which is a template parameter). Replacing the call of to_int(...) by Rounding::to_int appears to solve the issue. But I did not check if such issue was present at other places.
I have attached a patch file for this header that appears to compile properly.
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | rounded_arith.diff added |
---|
comment:1 by , 10 years ago
It's a bit annoying that 4 months after the bug fix, the patch is not included yet into the official distribution. I also had to manually edit the include file (which will be overwritten by a boost update on my mac). There are 4 lines of code to be changed!
comment:2 by , 10 years ago
Cc: | added |
---|---|
Milestone: | To Be Determined → Boost 1.52.0 |
Type: | Bugs → Patches |
Version: | Boost 1.49.0 → Boost 1.50.0 |
patch file for boost/numeric/interval/rounded_arith.hpp