#include "stdio.h"
class ff {
public:
explicit ff(int value = 3)
: value_(value) {}
void operator()() {
printf("%d\n", value_);
}
private:
int value_;
};
void fff(ff f) {
f();
}
int main() {
fff(ff());
return 0;
}
#include "stdio.h"
class ff {
public:
explicit ff(int value = 3)
: value_(value) {}
void operator()() {
printf("%d\n", value_);
}
private:
int value_;
};
void fff(ff f) {
f();
}
int main() {
fff(ff());
return 0;
}