Re: [Boost-bugs] [Boost C++ Libraries] #7270: C++11 narrowing problem in gil

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7270: C++11 narrowing problem in gil
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-23 23:00:15


#7270: C++11 narrowing problem in gil
-------------------------------+--------------------------------------------
  Reporter: jbosch | Owner: hljin
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: GIL
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords: c++11
-------------------------------+--------------------------------------------

Comment (by jbosch):

 Looking closer, my original patch would solve the problem but probably
 create some new ones, by always casting to unsigned int instead of the
 template parameter type. I've now attached a new patch that avoids
 mistake.

 It also looks like one of the partial specializations of the template in
 the same area could cause problems for C++11, depending on the types it
 was instantiated with. I'll leave fixing that up to someone more familiar
 with its purpose.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7270#comment:1>
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:10 UTC