This is my function:
char ReadFormatted(ifstream ifs){
//some ifs.read(); stuff
}
I am, as the include paths will show, using DevC++ and the standard compiler that comes with it.
This is the compiler output:
C:/Programmer/Dev-Cpp/include/c++/bits/ios_base.h: In copy constructor
`std::basic_ios >::basic_ios(const
std::basic_ios >&)'':
C:/Programmer/Dev-Cpp/include/c++/bits/ios_base.h:421: `
std::ios_base::ios_base(const std::ios_base&)'' is private
CPage.cpp:349: within this context
C:/Programmer/Dev-Cpp/include/c++/streambuf: In copy constructor
`std::basic_filebuf >::basic_filebuf(const
std::basic_filebuf >&)'':
C:/Programmer/Dev-Cpp/include/c++/streambuf:486: `std::basic_streambuf<_CharT,
_Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&)
[with _CharT = char, _Traits = std::char_traits]'' is private
CPage.cpp:349: within this context
Is there no way to have a function read from an ifstream defined elsewhere? I am thinking that perhaps some part of the ifstream object can be used to refer to it, but I am not all that experienced with fstream.