Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct CObject {
- CObject(const std::string & name) : value(name) {}
- virtual ~CObject() { // kill me }
- std::string Get() {
- return value;
- }
- std::string value;
- }
- TheMethod() {
- std::string value;
- {
- CObject balls("foo");
- value = balls.Get();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement