在这个例子中:
class foo{
public::
foo(int x):x(x){
}
int x;
};
我的编译器能够理解,in x(x)
,innerx
是参数,outerx
是成员变量,无需编写this->
。
这种行为是标准行为吗?
在这个例子中:
class foo{
public::
foo(int x):x(x){
}
int x;
};
我的编译器能够理解,in x(x)
,innerx
是参数,outerx
是成员变量,无需编写this->
。
这种行为是标准行为吗?