#include <iostream>
void printer(std::string* string)
{
std::cout << *string << std::endl;
}
int main()
{
auto func = reinterpret_cast<void(*)(void*)>(&printer);
std::string string = "Hello World";
func(&string);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBwcmludGVyKHN0ZDo6c3RyaW5nKiBzdHJpbmcpCnsKCXN0ZDo6Y291dCA8PCAqc3RyaW5nIDw8IHN0ZDo6ZW5kbDsKfQoKaW50IG1haW4oKSAKewoJYXV0byBmdW5jID0gcmVpbnRlcnByZXRfY2FzdDx2b2lkKCopKHZvaWQqKT4oJnByaW50ZXIpOwoJc3RkOjpzdHJpbmcgc3RyaW5nID0gIkhlbGxvIFdvcmxkIjsKCWZ1bmMoJnN0cmluZyk7CglyZXR1cm4gMDsKfQ==