Below is the compiler error that I'm getting in Visual Studio 2008:
C:\IT\work\redsword\third_party\boost\1_38_0\boost/gil/image.hpp(119) :
error C2039: '_view' : is not a member of 'boost::gil::image_view<Loc>'
with
[
Loc=boost::gil::rgba8c_loc_t
]
..\..\..\..\components\libs\renderer\source\Image.cpp(44) : see
reference to function template instantiation
'boost::gil::image
&boost::gil::image::operator
=(const Img &)' being compiled
with
[
Pixel=boost::gil::rgba8_pixel_t,
IsPlanar=false,
Alloc=std::allocator<unsigned char>,
Loc=boost::gil::rgba8c_loc_t,
Img=boost::gil::image_viewboost::gil::rgba8c_loc_t
]
And the code that it is compiling:
#include
#include
#include
Image::Image(
unsigned char const* buffer,
unsigned int width,
unsigned int height,
unsigned int bitsPerPixel,
int pitch
)
{
// Provide a pitch the exact width of the image if no
// explicit pitch was provided.
if( !pitch )
{
pitch = width * bitsPerPixel;
}
using namespace boost::gil;
m_imageData = interleaved_view( width, height,
reinterpret_cast( buffer ), pitch );
}
I'm still new to boost::gil and it's very hard to learn. Can anyone guide me
in the right direction as to how to resolve this compiler error?