关于typedef问题
c++吧
全部回复
仅看楼主
level 5
typedef char *pstring;
const pstring p是否和char *const p等价?
2017年12月11日 02点12分 1
level 15
用typeid试了试,const pstring和char * const等价。
2017年12月11日 06点12分 3
无论const pstring还是pstring const 都是char* const
2017年12月11日 06点12分
level 15
等价。
你可以用 is_same 测试一下。
2017年12月11日 06点12分 4
1