#include <functional>
#include <iostream>
typedef void (*VF)();
VF Test() {
return nullptr;
}
int main(int argc, char* argv[]) {
std::function<void()> foo(Test());
std::cout << !!foo << std::endl;
return 0;
}
I2luY2x1ZGUgPGZ1bmN0aW9uYWw+CiNpbmNsdWRlIDxpb3N0cmVhbT4KIAp0eXBlZGVmIHZvaWQgKCpWRikoKTsKIApWRiBUZXN0KCkgewoJcmV0dXJuIG51bGxwdHI7Cn0KIAppbnQgbWFpbihpbnQgYXJnYywgY2hhciogYXJndltdKSB7CglzdGQ6OmZ1bmN0aW9uPHZvaWQoKT4gZm9vKFRlc3QoKSk7CglzdGQ6OmNvdXQgPDwgISFmb28gPDwgc3RkOjplbmRsOwogCXJldHVybiAwOwp9