This is my build log. I hope you can guess what it says despite being in German. It basically says "No access to private member" in some template instantiation.Code:1> main.cpp 1>c:\programme\microsoft visual studio 10.0\vc\include\fstream(1116): error C2248: "std::basic_ios<_Elem,_Traits>::basic_ios": Kein Zugriff auf private Member, dessen Deklaration in der std::basic_ios<_Elem,_Traits>-Klasse erfolgte. 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char> 1> ] 1> c:\programme\microsoft visual studio 10.0\vc\include\ios(176): Siehe Deklaration von 'std::basic_ios<_Elem,_Traits>::basic_ios' 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char> 1> ] 1> Diese Diagnose trat in der vom Compiler generierten Funktion "std::basic_ofstream<_Elem,_Traits>::basic_ofstream(const std::basic_ofstream<_Elem,_Traits> &)" auf. 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char> 1> ]
To me this looks as if some ofstream object is copy constructed. It should not be. So I've been looking at all my declarations and function parameters if I've missed a "&" and passed a real object instead of a reference. But I found none.
I also checked all classes that hold ofstream instances as members but none of them is default copy-constructable, all have an explicit constructors with parameters.
After about 2 hours of guessing and searching I'm really at a loss how to find this. I don't even have a line number to my code. I just know that somewhere in one of the 20 headerfiles included and include-included in main, there is something wrong.
Does anyone have any idea how to find this?



LinkBack URL
About LinkBacks



