C++, static vs. namespace vs. singleton

后端 未结 6 1587
孤城傲影
孤城傲影 2020-12-01 07:34

I already read a lot of posts and articles all over the net, but I couldn\'t find a definite answer about this.

I have some functions with similar purposes that I wa

6条回答
  •  北海茫月
    2020-12-01 08:17

    What about using a keyword static at global scope (making stuff local to the file) as a privacy substitute?

提交回复
热议问题