Skip to content

Commit 49347d1

Browse files
committed
public inheritance in handle
1 parent 92874f1 commit 49347d1

File tree

1 file changed

+4
-2
lines changed
  • hardware_interface/include/hardware_interface

1 file changed

+4
-2
lines changed

hardware_interface/include/hardware_interface/handle.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class HandleInterface
143143
std::shared_ptr<rclcpp_lifecycle::LifecycleNode> node_;
144144
};
145145

146-
class ReadOnlyHandle : public HandleInterface, ReadHandleInterface
146+
class ReadOnlyHandle : public HandleInterface, public ReadHandleInterface
147147
{
148148
public:
149149
ReadOnlyHandle(
@@ -273,7 +273,9 @@ class DistributedStateInterface : public DistributedReadOnlyHandle
273273
using DistributedReadOnlyHandle::DistributedReadOnlyHandle;
274274
};
275275

276-
class ReadWriteHandle : public HandleInterface, ReadHandleInterface, WriteHandleInterface
276+
class ReadWriteHandle : public HandleInterface,
277+
public ReadHandleInterface,
278+
public WriteHandleInterface
277279
{
278280
public:
279281
ReadWriteHandle(

0 commit comments

Comments
 (0)