Guest User

Untitled

a guest
Feb 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. class BlockDevice
  2. {
  3. virtual std::string GetStreamLabel() const = 0;
  4. virtual std::string GetStreamName() const = 0;
  5. };
  6.  
  7.  
  8. main()
  9. {
  10. std::vector<shared_ptr<BlockDevice>> blockDevices;
  11. for (const auto& blkDevice : blockDevices)
  12. {
  13. string label = blkDevice->GetStreamLabel();
  14. string stringname = blkDevice->GetStreamName();
  15. }
  16. }
  17.  
  18. 'GetStreamLabel': is not a member of 'std::shared_ptr<ScopeEngine::BlockDevice>'
  19. 'GetStreamName': is not a member of 'std::shared_ptr<ScopeEngine::BlockDevice>'
Add Comment
Please, Sign In to add comment