love those STL error messages
This awfull error message boils down to: "Can't copy a stream object."
I missed the reference when I was passing it as a function argument:
I missed the reference when I was passing it as a function argument:
readIn(std::istream & inFile)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\istream(842) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
with
[
_Elem=char,
_Traits=std::char_traits
]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ios(151) : see declaration of 'std::basic_ios<_Elem,_Traits>::basic_ios'
with
[
_Elem=char,
_Traits=std::char_traits
]
This diagnostic occurred in the compiler generated function 'std::basic_istream<_Elem,_Traits>::basic_istream(const std::basic_istream<_Elem,_Traits> &)'
with
[
_Elem=char,
_Traits=std::char_traits
]
testRunner.cpp
Labels: programming
0 Comments:
Post a Comment
<< Home