daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CRValue
  2. {
  3. public:
  4.     void f() const && { puts("&&"); }
  5.     void f() const & { puts("& or inst"); }
  6. };
  7.  
  8. CRValue inst;
  9. CRValue &rInst = inst;
  10. inst.f();   // & or inst
  11. rInst.f();  // & or inst
  12. CRValue().f();  // &&
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top