I have a member that is std::ofstream fBinaryFile
and a
void setFile( std::ofstream& pBinaryFile )
{
fBinaryFile = pBinaryFile;
}
output:
Data.h:86:16: error: use of deleted function ‘std::basic_ofstream<char>& std::basic_ofstream<char>::operator=(const
std::basic_ofstream<char>&)’
fBinaryFile = pBinaryFile;
^
I understood that copy in std::ofstream
is not allowed and maybe I'm missing something. Is possible save the content of pBinaryFile
in fBinaryfile
?