F
Fraser Ross
typedef std::basic_ifstream<char> Stream;
Stream fileStream;
try {
fileStream.open(Name().c_str(), std::ios_base::binary);
if (fileStream.is_open()) {
typedef std::istream_iterator<ColourType, Stream::char_type> Iter;
bool const test2(Iter() == Iter(fileStream));
Why is test2 set to true? The file being read is ok. ColorType is a 32
bit integer.
Fraser.
Stream fileStream;
try {
fileStream.open(Name().c_str(), std::ios_base::binary);
if (fileStream.is_open()) {
typedef std::istream_iterator<ColourType, Stream::char_type> Iter;
bool const test2(Iter() == Iter(fileStream));
Why is test2 set to true? The file being read is ok. ColorType is a 32
bit integer.
Fraser.