Aha: the problem can be resolved by changing line 124 in /usr/include/boost/gil/bit_aligned_pixel_reference.hpp from typedef bit_range<bit_size,IsMutable> bit_range_t; to typedef boost::gil::bit_range<bit_size,IsMutable> bit_range_t; Tim