Mam metode:
std::string get_file_name(int n, std::string name){
return name + std::to_string(n);
}
Kazdej jej wywolanie konczy sie
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
Program kompilowany jest G++ na ubuntu. Nie jest to kwestia tego, iz mam za malo pamieci RAM