首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
Why and how should I use namespaces in C++?
后端
未结
关注
6
1683
甜味超标
2020-12-02 18:59
I have never used namespaces for my code before. (Other than for using STL functions)
Other than for avoiding name conflicts, is there any other reason to use
6条回答
时光说笑
(楼主)
2020-12-02 19:30
Answer: If you ever want to overload the new, placement new, or delete functions you're going to want to do them in a namespace. No one wants to be forced to use your version of new if they don't require the things you require.
Yes
0
讨论(0)
查看其它6个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题