Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct wrapper
- {
- string const& val;
- };
- auto&& a = wrapper{string("123")};
- // wrapper's life-time is supposed to be extended, but what about the string's?
- // is a.val supposed to be valid as well?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement