Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- struct some {
- int feature() const { return 0; }
- int not_a_feature() && { return 0;}
- };
- int main_1() {
- const some object;
- return object.feature();
- }
- int main_2() {
- some object;
- return object.not_a_feature();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement