How do I write the following:
typedef void (^T)(void);开发者_开发技巧
T f() {
return ^{};
}
without the typedef?
void (^f())(void) {
return ^{};
}
You'd better keep the typedef as the return type is not easy to understand in this form.
How do I write the following:
typedef void (^T)(void);开发者_开发技巧
T f() {
return ^{};
}
without the typedef?
void (^f())(void) {
return ^{};
}
You'd better keep the typedef as the return type is not easy to understand in this form.
精彩评论