Boost logo

Boost Users :

Subject: [Boost-users] GIL: New file io, almost there, but can't compile 'write_view'
From: Dan Bloomquist (boost_at_[hidden])
Date: 2018-12-08 01:46:12

So, I had to deal with a lib I worked on last a couple of years ago.
Great news, the file IO has been greatly simplified in 1.68. I was able
to retire several dozens of cryptic,(for me), lines. The old code won't
compile as the Adobe extensions are gone. I'm almost there, I can read
files, but I don't understand why I can't get the writer to compile.

I get to my code, in case it matters:
 Â Â Â      bg::rgb8_image_t destImg( res, x );
 Â Â Â      resize_view( view( sourceImg ), view( destImg ),
bg::bilinear_sampler( ) );

and rgb8_image_t should be a good one from what I read:

With either:
 Â Â Â      bg::write_view( path_to, destImg, bg::jpeg_tag() );
 Â Â Â      bg::image_write_info<bg::jpeg_tag> write_setttings;
 Â Â Â      bg::write_view( path_to, destImg, write_setttings );

ms140 complains:
error C2039: 'reference': is not a member of
1>  c:\cpp\boost_1_68_0\boost\gil\typedefs.hpp(176): note: see
declaration of
1>  console_test.cpp(248): note: see reference to class template
instantiation 'boost::gil::get_pixel_type<boost::gil::rgb8_image_t>'
being compiled
error C2146: syntax error: missing '>' before identifier 'reference'

What am I missing? Do I need to supply more information? I'll put the
whole thing in a url if needed.
Thanks, Dan.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at