Hi
I get on the line: &Flughafen->toString()
the error: taking address of temporary [-fpermissive]
loopAirportpush returns passendeAirports: std::vector<Airport*> passendeAirports;
Any ideas on how to avoid that error?
Many thanks
stringstream bla;
auto foundAirports = loopAirportpush("LSZH");
cout << foundAirports.size() << " airports found: " << endl;
for (auto it = foundAirports.begin(); it != foundAirports.end(); it++)
{
auto Flughafen = (*it);
bla << " - " << &Flughafen->toString() << "\n";
}
return bla.str();