1. 晚上写了一个显式具体化的小程序,编译的时候报如下错误: ‘char* maxn(const char**, int)’ does not match any template declaration 2. 模版的声明如下: 显式具体化的声明如下: 编译的时候报了如上的错误。 3. 想起来,const与非const混合的指针赋值方式将不再安全。 故将上述声明中的const去掉即可。 转载于:https://blog.51cto.com/chuncui/1056067