cxx-shadows-parameter

在cxx中写了类函数,编译报错:

error: declaration of 'str info' shadows a parameter

发现是因为局部变量info和参数名冲突引起的。

参考资料:

  1. https://blog.csdn.net/rdgfdd/article/details/79597378
  2. https://blog.csdn.net/huangyabin001/article/details/42488511

你可能感兴趣的:(cxx-shadows-parameter)