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: chris.fairles@… 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)

boost-gil-gcc43-change-meaning-of-bit_range.patch (827 bytes ) - added by chris.fairles@… 15 years ago.
Patch for GCC 4.3 error in bit_aligned_pixel_reference.hpp

Download all attachments as: .zip

Change History (3)

by chris.fairles@…, 15 years ago

Patch for GCC 4.3 error in bit_aligned_pixel_reference.hpp

comment:1 by chris.fairles@…, 15 years ago

Description is wrong, its not a friend decl.

comment:2 by Hailin Jin, 15 years ago

Resolution: fixed
Status: newclosed

Fixed with the new GCC 4.3.0 release

Note: See TracTickets for help on using tickets.