From 49347d16e91dfa0af2c160cacfccee6fff421880 Mon Sep 17 00:00:00 2001 From: Manuel M Date: Mon, 5 Dec 2022 16:30:44 +0100 Subject: [PATCH] public inheritance in handle --- hardware_interface/include/hardware_interface/handle.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hardware_interface/include/hardware_interface/handle.hpp b/hardware_interface/include/hardware_interface/handle.hpp index 386aee7992..ac75c91edc 100644 --- a/hardware_interface/include/hardware_interface/handle.hpp +++ b/hardware_interface/include/hardware_interface/handle.hpp @@ -143,7 +143,7 @@ class HandleInterface std::shared_ptr node_; }; -class ReadOnlyHandle : public HandleInterface, ReadHandleInterface +class ReadOnlyHandle : public HandleInterface, public ReadHandleInterface { public: ReadOnlyHandle( @@ -273,7 +273,9 @@ class DistributedStateInterface : public DistributedReadOnlyHandle using DistributedReadOnlyHandle::DistributedReadOnlyHandle; }; -class ReadWriteHandle : public HandleInterface, ReadHandleInterface, WriteHandleInterface +class ReadWriteHandle : public HandleInterface, + public ReadHandleInterface, + public WriteHandleInterface { public: ReadWriteHandle(