Skip to content

Commit

Permalink
add missing public statement in transfer interface
Browse files Browse the repository at this point in the history
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<LibUSB::Transfer>’ 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<LibUSB::Transfer>’ 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<LibUSB::Transfer>’ 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<LibUSB::Transfer>’ is an
   inaccessible base of ‘LibUSB::IsochronousTransfer’

Signed-off-by: Stephan Linz <[email protected]>
  • Loading branch information
rexut committed Nov 28, 2016
1 parent 1ffcb82 commit d6e6f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion headers/libusbpp/Transfer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace LibUSB
class TransferImpl;

/// USB Data transfer object.
class Transfer : std::enable_shared_from_this<Transfer>
class Transfer : public std::enable_shared_from_this<Transfer>
{

public:
Expand Down

0 comments on commit d6e6f5b

Please sign in to comment.