Subject: [Boost-bugs] [Boost C++ Libraries] #6807: interval rounded_arith.hpp compilation issues (clang)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-18 15:51:09
#6807: interval rounded_arith.hpp compilation issues (clang)
--------------------------------------------+-------------------------------
Reporter: Frederic Py <fredpy@â¦> | Owner: bgubenko
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interval
Version: Boost 1.49.0 | Severity: Problem
Keywords: interval, clang, to_int |
--------------------------------------------+-------------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6807> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC