Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. class A : B, std::enable_shared_from_this<A>
  2. {
  3. public:
  4. A();
  5. virtual ~A();
  6. public:
  7. void initStr(std::string str=""){m_STR = str;};
  8. private:
  9. std::string m_STR;
  10. };
  11.  
  12. struct A : B, std::enable_shared_from_this<A> {
  13. A();
  14. virtual ~A();
  15.  
  16. void initStr(std::string str = {}) { m_STR = str; }
  17.  
  18. private:
  19. std::string m_STR;
  20. };
  21.  
  22. class A : public B, public std::enable_shared_from_this<A>
  23. {
  24. public:
  25. A();
  26. virtual ~A();
  27. public:
  28. void initStr(std::string str=""){m_STR = str;};
  29. private:
  30. std::string m_STR;
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement