You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1> d:\libraries\boost_1_75_0\boost\gil\io\get_reader.hpp(160,62): error C2039: 'type': is not a member of 'boost::gil::get_read_device<T,FormatTag,void>'
1> with
1> [
1> T=std::ifstream,
1> FormatTag=boost::gil::image_read_settings<boost::gil::jpeg_tag>
1> ]
1> d:\libraries\boost_1_75_0\boost\gil\io\get_reader.hpp(160): message : see declaration of 'boost::gil::get_read_device<T,FormatTag,void>'
1> with
1> [
1> T=std::ifstream,
1> FormatTag=boost::gil::image_read_settings<boost::gil::jpeg_tag>
1> ]
1> d:\libraries\boost_1_75_0\boost\gil\io\make_scanline_reader.hpp(95): message : see reference to class template instantiation 'boost::gil::get_scanline_reader<Device,boost::gil::image_read_settings<boost::gil::jpeg_tag>>' being compiled
1> with
1> [
1> Device=std::ifstream
1> ]
Expected behavior
I want use gil for read jpeg line by line from istream
C++ Minimal Example
#include<fstream>
#include<boost/gil.hpp>
#include<boost/gil/extension/io/jpeg.hpp>namespacegil= boost::gil;
int main
{
usingtag_t = gil::jpeg_tag;
usingreader_t = gil::scanline_reader<typename gil::get_read_device<std::istream, tag_t>::type, tag_t>;
std::ifstream is("d:/test.jpg", std::ios::binary | std::ios::in);
reader_t reader = gil::make_scanline_reader(is, tag_t()); //Here an error
}
Environment
Inside make_scanline_reader.hpp (line 84) - it seems function recursive:
Actual behavior
Code not compiles on msvc 16.9.1
see piece of build log below
Expected behavior
I want use gil for read jpeg line by line from istream
C++ Minimal Example
Environment
Inside make_scanline_reader.hpp (line 84) - it seems function recursive:
The text was updated successfully, but these errors were encountered: