From d6e6f5b1e9b648b9585555d12f7f4d1af24e791a Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Wed, 29 Jun 2016 11:54:42 +0200 Subject: [PATCH] add missing public statement in transfer interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error was: .../src/endpoint_impl.cpp:130:109: required from here /usr/include/c++/4.8/bits/shared_ptr_base.h:963:64: error: ‘std::enable_shared_from_this’ is an inaccessible base of ‘LibUSB::ControlTransfer’ .../src/endpoint_impl.cpp:144:111: required from here /usr/include/c++/4.8/bits/shared_ptr_base.h:963:64: error: ‘std::enable_shared_from_this’ is an inaccessible base of ‘LibUSB::InterruptTransfer’ .../src/endpoint_impl.cpp:157:106: required from here /usr/include/c++/4.8/bits/shared_ptr_base.h:963:64: error: ‘std::enable_shared_from_this’ is an inaccessible base of ‘LibUSB::BulkTransfer’ .../src/endpoint_impl.cpp:168:113: required from here /usr/include/c++/4.8/bits/shared_ptr_base.h:963:64: error: ‘std::enable_shared_from_this’ is an inaccessible base of ‘LibUSB::IsochronousTransfer’ Signed-off-by: Stephan Linz --- headers/libusbpp/Transfer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/libusbpp/Transfer.hpp b/headers/libusbpp/Transfer.hpp index 8248bed..a83202c 100644 --- a/headers/libusbpp/Transfer.hpp +++ b/headers/libusbpp/Transfer.hpp @@ -33,7 +33,7 @@ namespace LibUSB class TransferImpl; /// USB Data transfer object. - class Transfer : std::enable_shared_from_this + class Transfer : public std::enable_shared_from_this { public: