Making a copy of an istream.
Hi out there!
I have a problem with an istream object. My code is as follows:
Code:
//Constructor of Class scanner.
scanner(istream &istr): is(istr) {}
As you can see, this constructor should take an istream object as input, and copy it to a private variable called is, which also is an istream.
This, though, does make compiling error, both with BorlandC++, and with DJGPP´s gpp.
I have taken this from a source, which previously compiled under Unix(Solaris), with g++.
Can anyone suggest a way to get this working(compiling)?
Regards