fork download
  1. #include <string>
  2. #include <iostream>
  3. using namespace std;
  4. class Inner {
  5. public:
  6. Inner() {}
  7. Inner(const Inner& e) {
  8. cout << "Call This" << endl;
  9. }
  10. };
  11. class Outter {
  12. Inner dat;
  13. };
  14. int main() {
  15. Outter a, b;
  16. swap(a, b);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
Call This