ulvis.paste.net

Paste Search Dynamic
Recent pastes
struct A
  1. struct A
  2. {
  3.         int a;
  4.         operator int() && { return a; }
  5.         operator int &() & { return a; }
  6. };
  7.  
  8. void b(int &&) {}
  9.  
  10. int main()
  11. {
  12.         b(A{});
  13. }
  14.  
Parsed in 0.001 seconds