Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int i = 1, j = 2;
- const int& m = i + j; // compiles
- int& n = i + j; // compile error: cannot bind non-const lvalue reference of type ... to an rvalue of type ...
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement