Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. struct CObject {
  2. CObject(const std::string & name) : value(name) {}
  3. virtual ~CObject() { // kill me }
  4. std::string Get() {
  5. return value;
  6. }
  7. std::string value;
  8. }
  9.  
  10. TheMethod() {
  11.  
  12. std::string value;
  13. {
  14. CObject balls("foo");
  15. value = balls.Get();
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement