Siema.
Kod:
void load_map()
{
int i = 0;
string file_name = "mapa.txt";
fstream file = open_file(file_name);
do
{
map[i].load_file(file);
i++;
} while (file.eof() == false);
close_file(file_name, file);
}
Błąd:
error C2280: 'std::basic_fstream<char,std::char_traits<char>>::basic_fstream(const std::basic_fstream<char,std::char_traits<char>> &)' : attempting to reference a deleted function
Co w tym kodzie jest nie tak że wywala ten błąd?