Opened 15 years ago
Closed 15 years ago
#1522 closed Bugs (fixed)
bit_range friend decl in bit_aligned_pixel_reference.hpp needs to be fully qualified for gcc 4.3 mainline
Reported by: | Owned by: | Hailin Jin | |
---|---|---|---|
Milestone: | To Be Determined | Component: | gil USE GITHUB |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
GCC 4.3 Mainline gives:
/usr/include/boost/gil/bit_aligned_pixel_reference.hpp:162: error: declaration of ‘const boost::gil::bit_range<boost::gil::bit_aligned_pixel_reference<C, L, M>::bit_size, IsMutable>& boost::gil::bit_aligned_pixel_reference<C, L, M>::bit_range() const’ /usr/include/boost/gil/bit_aligned_pixel_reference.hpp:46: error: changes meaning of ‘bit_range’ from ‘class boost::gil::bit_range<boost::gil::bit_aligned_pixel_reference<C, L, M>::bit_size, IsMutable>’
See http://gcc.gnu.org/ml/gcc/2007-09/msg00482.html
Solution is to change:
typedef bit_range<bit_size,IsMutable> bit_range_t;
to
typedef boost::gil::bit_range<bit_size,IsMutable> bit_range_t;
(patch attached)
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | boost-gil-gcc43-change-meaning-of-bit_range.patch added |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with the new GCC 4.3.0 release
Patch for GCC 4.3 error in bit_aligned_pixel_reference.hpp