#include <iostream>
using namespace std;
class Printer
{
public:
void println(const char* string_pointer) { cout << string_pointer << endl; }
};
int main(int argc, char** argv)
{
void(*println_ptr)(Printer*, const char*) = reinterpret_cast<void (*)(Printer*, const char*)>(&Printer::println);
Printer printer;
println_ptr(&printer, "beans on toast");
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgUHJpbnRlcgp7CnB1YmxpYzoKdm9pZCBwcmludGxuKGNvbnN0IGNoYXIqIHN0cmluZ19wb2ludGVyKSB7IGNvdXQgPDwgc3RyaW5nX3BvaW50ZXIgPDwgZW5kbDsgfQp9OwoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqKiBhcmd2KQp7CiAgdm9pZCgqcHJpbnRsbl9wdHIpKFByaW50ZXIqLCBjb25zdCBjaGFyKikgPSByZWludGVycHJldF9jYXN0PHZvaWQgKCopKFByaW50ZXIqLCBjb25zdCBjaGFyKik+KCZQcmludGVyOjpwcmludGxuKTsKICBQcmludGVyIHByaW50ZXI7CiAgcHJpbnRsbl9wdHIoJnByaW50ZXIsICJiZWFucyBvbiB0b2FzdCIpOwp9