Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#10054 closed Bugs (fixed)

[gil] Duplicate typedef in pnm's scanline_read.hpp

Reported by: William Gallafent <william@…> Owned by: Stefan Seefeld
Milestone: Boost 1.68.0 Component: gil USE GITHUB
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: mateusz@…

Description

At the top of the “scanline_reader” template in boost/gil/extension/io/formats/pnm/scanline_read.hpp the are the following lines of code:

…
private:

    typedef scanline_reader< Device
                           , pnm_tag
                           > this_t;

public:

    typedef pnm_tag tag_t;
    typedef reader_backend < Device, tag_t > backend_t;
    typedef scanline_reader< Device, tag_t > this_t;
…

This typdefs this_t twice, preventing compilation (using clang of Apple Xcode 5.1). Removing the first typedef fixes this problem.

Change History (4)

comment:1 by Mateusz Loskot, 6 years ago

Cc: mateusz@… added

comment:2 by Stefan Seefeld, 5 years ago

Owner: changed from Hailin Jin to Stefan Seefeld

comment:3 by Mateusz Loskot, 4 years ago

Resolution: fixed
Status: newclosed

GIL in Boost 1.68 delivers completely re-implemented I/O extensions. The new version does not include the duplicate definition, so the issue should be gone now.

Closing as fixed.

GitHub ref: https://github.com/boostorg/gil/projects/4#card-12375873

comment:4 by Mateusz Loskot, 4 years ago

Milestone: To Be DeterminedBoost 1.68.0
Note: See TracTickets for help on using tickets.