linux下会出现如下错误:
there are no arguments to '***' that depend on a template parameter, so a declaration of '***' must be available
错误:‘×××’ 的实参不依赖模板参数,所以 ‘×××’ 的声明必须可用
需要在×××之前增加范围标识,参考http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html
::foo(double) and A::N

本文解决了一个常见的Linux编译错误:实参不依赖模板参数。通过添加范围标识来修正该问题,并给出了具体的修正链接。

2249

被折叠的 条评论
为什么被折叠?



