Hi there, there seems to be some problems with the new MSVC10 compiler
and bit_aligned images in gil. The following was compiling fine before
I started using MSVC10. Here is some sample code:
#include <vector>
#include <algorithm>
#include
using namespace std;
using namespace boost;
using namespace boost::gil;
int main(int argc, char* argv[])
{
typedef bit_aligned_image1_type< 1, gray_layout_t >::type image_t;
typedef image_t::view_t view_t;
typedef view_t::reference pixel_t;
typedef vector< unsigned char > buffer_t;
typedef bit_aligned_pixel_iterator< pixel_t > it_t;
vector< unsigned char > buf;
it_t begin = it_t( &buf.front(), 0 );
it_t end = it_t( &buf.front(), 0 );
image_t img;
image_t::view_t v = view( img );
std::copy( begin
, end
, v.row_begin( 0 )
);
return 0;
}
The error message is:
c:\program files (x86)\microsoft visual studio
10.0\vc\include\xutility(2216): error C2665: 'std::_Copy_impl' : none
of the 2 overloads could convert all the argument types
Anyone, any idea? I'll keep investigating.
Regards,
Christian