Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. struct some {
  5. int feature() const { return 0; }
  6. int not_a_feature() && { return 0;}
  7. };
  8.  
  9. int main_1() {
  10. const some object;
  11. return object.feature();
  12. }
  13.  
  14. int main_2() {
  15. some object;
  16. return object.not_a_feature();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement