fork download
  1. #include <iostream>
  2.  
  3. struct Bob
  4. {
  5. Bob(int a) : v(a)
  6. {
  7. }
  8. int v;
  9. operator int()
  10. {
  11. return v;
  12. }
  13. };
  14.  
  15. int main()
  16. {
  17. std::cout << Bob(3)*5 << std::endl;
  18. }
  19.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
15