SHARE
TWEET

Untitled

a guest Jun 12th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct B{};
  2. struct D : B {};
  3. struct E : B {};
  4.  
  5. struct S{
  6.   D d;
  7.   operator D&(){return d;}
  8.   operator E&(){return d;}
  9. };
  10.  
  11. int main() {
  12.   S s;
  13.   B & b = s;
  14. }
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