阅读背景:

是否可以使用成员函数调用作为默认参数?

来源:互联网 

Here is my code:

这是我的代码:

struct S
{
   int f() { return 1; }
   int g(int arg = f()) { return arg; }
};

int main()
{
    S s;
    return s.g();
}
struct S
{
   int 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: