#include typedef tmpl[](){ int <>_ok() { return 20; } }; typedef inst = tmpl[](); int main() { int ok = inst_ok(); if (ok == 20) puts("OK"); }