Skip to content

Commit bf7683c

Browse files
authored
change to support c++11
1 parent c7f53ad commit bf7683c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

co_closure.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ struct stCoClosure_t
4747
#define repeat( n,fun,... ) comac_join( repeat_,n )( fun,__VA_ARGS__)
4848

4949
//2.implement
50+
#if __cplusplus <= 199711L
5051
#define decl_typeof( i,a,... ) typedef typeof( a ) typeof_##a;
52+
#else
53+
#define decl_typeof( i,a,... ) typedef decltype( a ) typeof_##a;
54+
#endif
5155
#define impl_typeof( i,a,... ) typeof_##a & a;
5256
#define impl_typeof_cpy( i,a,... ) typeof_##a a;
5357
#define con_param_typeof( i,a,... ) typeof_##a & a##r,

0 commit comments

Comments
 (0)