小编Ash*_*win的帖子

递归函数可以内联吗?

inline int factorial(int n)
{
    if(!n) return 1;
    else return n*factorial(n-1);
}
Run Code Online (Sandbox Code Playgroud)

在我阅读本文时,发现如果编译器没有正确处理上述代码会导致"无限编译".

编译器如何决定是否内联函数?

c c++ compiler-construction

132
推荐指数
4
解决办法
4万
查看次数

在C++中学习"有效"模板编程的好书/资源?

我看过Scott Meyers的"Effective C++"第三版,其中有一小部分是关于"模板编程"的.

包含有关模板"有效"使用信息的任何其他书籍/链接?

c++ templates

3
推荐指数
2
解决办法
743
查看次数

标签 统计

c++ ×2

c ×1

compiler-construction ×1

templates ×1