From 848e32a6983cd2d61e3c1e9a489ca6563536099f Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 7 Jul 2020 11:13:11 +0930 Subject: make update_state pure virtual, use Object instead of gate --- Object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Object.h') diff --git a/Object.h b/Object.h index e4e504b..f295491 100644 --- a/Object.h +++ b/Object.h @@ -55,7 +55,7 @@ class Object void add_output_object_id(int id_) { this->output_object_ids.push_back(id_); }; - virtual void update_state() {}; // subclasses must implement + virtual void update_state() = 0; // subclasses must implement static void set_object_id_counter(int id_) { object_id_counter = id_; }; static int get_object_id_counter() { return object_id_counter; }; -- cgit v1.2.3