Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pair<int, int> Get(...) {
- return ...;
- }
- void Var1() {
- int x = Get(...).first; // RUNTIME_ERROR
- }
- void Var2() {
- auto res = Get(...);
- int y = res.first; // OK
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement