Image

Imageboobsik wrote in Imagecpp

Uninitialized iterator

Why the fileEnd iterator, points to the end of file, in spite of it wasn't even initialized?

ifstream dataFile("data.txt");
istream_iterator fileStart(dataFile);
istream_iterator fileEnd;
list data( fileStart, fileEnd );