mirror of
https://github.com/boostorg/gil.git
synced 2026-02-20 14:52:10 +00:00
Fixed compiler errors with gcc.
[SVN r85549]
This commit is contained in:
committed by
Stefan Seefeld
parent
bd2bd44b5b
commit
b90e1780d6
@@ -27,9 +27,9 @@
|
||||
|
||||
namespace boost { namespace gil {
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4512) //assignment operator could not be generated
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4512) //assignment operator could not be generated
|
||||
#endif
|
||||
|
||||
/// Input iterator to read images.
|
||||
@@ -39,6 +39,14 @@ class scanline_read_iterator : public boost::iterator_facade< scanline_read_iter
|
||||
, std::input_iterator_tag
|
||||
>
|
||||
{
|
||||
private:
|
||||
|
||||
typedef boost::iterator_facade< scanline_read_iterator< Reader >
|
||||
, byte_t*
|
||||
, std::input_iterator_tag
|
||||
> base_t;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
scanline_read_iterator( Reader& reader
|
||||
@@ -76,7 +84,7 @@ private:
|
||||
return _pos == rhs._pos;
|
||||
}
|
||||
|
||||
reference dereference() const
|
||||
typename base_t::reference dereference() const
|
||||
{
|
||||
if( _read_scanline == true )
|
||||
{
|
||||
@@ -106,9 +114,9 @@ private:
|
||||
mutable byte_t* _buffer_start;
|
||||
};
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
} // namespace gil
|
||||
} // namespace boost
|
||||
|
||||
@@ -48,12 +48,6 @@ class scanline_reader< Device
|
||||
, bmp_tag
|
||||
>
|
||||
{
|
||||
private:
|
||||
|
||||
typedef scanline_reader< Device
|
||||
, bmp_tag
|
||||
> this_t;
|
||||
|
||||
public:
|
||||
|
||||
typedef bmp_tag tag_t;
|
||||
|
||||
@@ -46,12 +46,6 @@ class scanline_reader< Device
|
||||
, targa_tag
|
||||
>
|
||||
{
|
||||
private:
|
||||
|
||||
typedef scanline_reader< Device
|
||||
, targa_tag
|
||||
> this_t;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
@@ -64,11 +64,6 @@ class scanline_reader< Device
|
||||
, tiff_tag
|
||||
>
|
||||
{
|
||||
private:
|
||||
|
||||
typedef scanline_reader< Device
|
||||
, tiff_tag
|
||||
> this_t;
|
||||
public:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user