From 3e5deb8a5fa27c16c895dce3b4a53255f4f1193d Mon Sep 17 00:00:00 2001 From: Mateus <mateus.sanches@eurecat.org> Date: Fri, 10 Jan 2025 11:48:01 +0100 Subject: [PATCH] LandmarkBase print() and check() functions are now virtual --- include/core/landmark/landmark_base.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/core/landmark/landmark_base.h b/include/core/landmark/landmark_base.h index 41a301d53..dcdc446f4 100644 --- a/include/core/landmark/landmark_base.h +++ b/include/core/landmark/landmark_base.h @@ -160,15 +160,15 @@ class LandmarkBase : public NodeStateBlocks std::ostream& stream, std::string _tabs = "") const; - void print(int depth, // - bool factored_by, // - bool metric, // - bool state_blocks, - std::ostream& stream = std::cout, - std::string _tabs = "") const; + virtual void print(int depth, // + bool factored_by, // + bool metric, // + bool state_blocks, + std::ostream& stream = std::cout, + std::string _tabs = "") const; virtual CheckLog localCheck(bool _verbose, std::ostream& _stream, std::string _tabs = "") const; - bool check(CheckLog& _log, bool _verbose, std::ostream& _stream, std::string _tabs = "") const; + virtual bool check(CheckLog& _log, bool _verbose, std::ostream& _stream, std::string _tabs = "") const; private: void setMap(const MapBasePtr _map_ptr); -- GitLab