void CBTestFunc2(String foo, String bar){ Cout() << foo << " " << bar << "\n;" } Callback1<String> cb1 = callback1(&CBTestFunc2, "parameter 2")); cb1("parameter 1");
void CBTestFunc3(String one, String two, String three){ Cout() << Format("%s %s %s", one, two, three); } Callback1<String> cb2 = callback2(&CBTestFunc3, "two", "three"); cb2("one");