标签: c++
void foo(const char **p) { } int main() { char *t; foo(&t); return 0; }
此代码无法在gcc(error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive])上编译(http://ideone.com/2NHA08),但为什么?转换是const的补充,为什么会失败?
error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
const