From 01862f6b40c0f8fbc0123f1ac5140a406c268251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 10 Nov 2020 13:42:50 +0100 Subject: destructor and copy assignment operator --- labb4/GameState.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'labb4/GameState.h') diff --git a/labb4/GameState.h b/labb4/GameState.h index 331dcb7..ac749bb 100644 --- a/labb4/GameState.h +++ b/labb4/GameState.h @@ -21,7 +21,10 @@ class GameState { public: GameState(); GameState(int numberOfRobots); - GameState(const GameState &); + GameState(const GameState &other); + ~GameState(); + + GameState &operator=(const GameState &other); /* * Clear and redraw entire playing field -- cgit v1.2.1