Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Reservation.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/EventSystem/Reservation.cpp4
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);
+}