#include <iostream>
#include <string>
#include <vector>
class C{
public:
static C CC(){return C();}
C(){std::cout << "C()" << std::endl;}
~C(){std::cout << "~C()" << std::endl;}
C CCC(){return C();}
int a() const {std::cout << "a()" << std::endl;return 1;}
};
int f(int i){
std::cout << i << std::endl;
return i;
}
void main(){
f(f(f(C::CC().CCC().CCC().a())));
}
|