From 0521180c61e7d8970f164f3154599e49800e85c6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 2 May 2022 21:40:36 +0300 Subject: Autocommit at 02.05.2022 @ 21:40 --- src/EventSystem/Reservation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/EventSystem/Reservation.cpp') diff --git a/src/EventSystem/Reservation.cpp b/src/EventSystem/Reservation.cpp index ba12547..613a715 100644 --- a/src/EventSystem/Reservation.cpp +++ b/src/EventSystem/Reservation.cpp @@ -21,3 +21,7 @@ void Reservation::write(std::ostream& ostr) const { ostr.write(password, sizeof(password)); ostr.write(note, sizeof(note)); } + +int Reservation::compare(const Reservation& other) const { + return ticket.compare(other.ticket); +} -- cgit v1.3.1-23-gd82d