Wywal metodę wczytaj, dodaj konstruktor:
Ksiazka(string nazwa_, string autor_, int id_, bool dost_)
:nazwa(move(nazwa_)),
autor(move(autor_)),
id(id_),
dost(dost_)
{}
i wczytuj tak:
string nazwa;
string autor;
int id;
bool dost;
list <Ksiazka> lista_k;
ifstream file("katalog.txt");
while(file >> id >> nazwa >> autor >> dost)
{
lista_k.emplace_back(move(nazwa), move(autor), id, dost);
}