Prevent standard functions outside of std namespace

前端 未结 5 657
梦如初夏
梦如初夏 2021-01-04 01:51

I am using only header files specific to C++ (e.g. ), however I still get globally-declared functions, and not just functions in the std

5条回答
  •  时光说笑
    2021-01-04 02:38

    usually I would prefer to keep your function names different from what is defined as a standard . For ex here one could use function name as myRandom instead of random so that I can inform the people , who would be maintaining my code later on , that the function being used is NOT the one defined as a standard.

提交回复
热议问题