From d09a1036d618761c272c5838c91c2f7c0aa228e1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:13:17 +0300 Subject: Autocommit at 05.05.2022 @ 13:13 --- src/Venue/Hall.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Venue/Hall.cpp') diff --git a/src/Venue/Hall.cpp b/src/Venue/Hall.cpp index b542c9b..864ea6e 100644 --- a/src/Venue/Hall.cpp +++ b/src/Venue/Hall.cpp @@ -28,3 +28,8 @@ unsigned Hall::get_seatsPerRow() const { void Hall::set_seatsPerRow(unsigned seatsPerRow) { this->seatsPerRow = seatsPerRow; } + +int Hall::compare(const Hall& other) { + // TODO: compare seats and rows + return (index > other.get_index()) - (index < other.get_index()); +} -- cgit v1.3.1-23-gd82d