Opened 11 years ago

Last modified 10 years ago

#6807 new Patches

interval rounded_arith.hpp compilation issues (clang)

Reported by: Frederic Py <fredpy@…> 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)

rounded_arith.diff (1.2 KB ) - added by Frederic Py <fredpy@…> 11 years ago.
patch file for boost/numeric/interval/rounded_arith.hpp

Download all attachments as: .zip

Change History (4)

by Frederic Py <fredpy@…>, 11 years ago

Attachment: rounded_arith.diff added

patch file for boost/numeric/interval/rounded_arith.hpp

comment:1 by Luca Di Gaspero <l.digaspero@…>, 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 Luca Di Gaspero <l.digaspero@…>, 10 years ago

Cc: l.digaspero@… added
Milestone: To Be DeterminedBoost 1.52.0
Type: BugsPatches
Version: Boost 1.49.0Boost 1.50.0

comment:3 by anonymous, 10 years ago

I'm experiencing the same problem when compiling with gcc-4.7.

Note: See TracTickets for help on using tickets.