```cpp /** * @brief Prints out filtered appointments that meet the criteria in a format * @param ostream& out * @param Scheduler& scheduler * @return ostream& out */ std::ostream& operator<<(std::ostream& out, const Scheduler& scheduler) { for(int i = 0; i < scheduler.GetAppointments().size(); i++) { out << scheduler.appointments_[i]; out << std::endl; }, return out; }, ``` The function prints out the location instead of the data, but I'm not sure where I need to dereference it
What type is Scheduler::Appointments; I assume its an array of Appointment pointers; if so, you can do something like `out << *(scheduler.appointments_[i];`, assuming you have an overload for the << operator between std::ostream and Appointment