Subject: [Boost-bugs] [Boost C++ Libraries] #6880: Boost Polygon c++11 problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-09 08:17:43
#6880: Boost Polygon c++11 problem
------------------------------+---------------------------------------------
Reporter: free66@⦠| Owner: ljsimons
Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
In transform_detail.hpp of boost polygon line 257 you write
int this_array[3] = {horizontalDir.to_int(),
verticalDir.to_int(),
proximalDir.to_int()};
where horizontalDir is a direction_3d defined in isotropy.hpp and the
to_int() function is defined in line 529 as
inline unsigned int to_int(void) const { return val_; }
returning an unsigned int. Using the uniform initialization with {}
results in narrowing which is imho not allowed in c++11. At least the llvm
clang 3.1 compiler complains.
Possible fixes afaik to_int() could return int or array should be defined
as unsigned int
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6880> 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