How can I “unuse” a namespace?

后端 未结 7 2291
庸人自扰
庸人自扰 2020-11-29 03:01

One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having...

using namespace xyzzy
         


        
7条回答
  •  孤独总比滥情好
    2020-11-29 03:34

    Quick experiment with Visual Studio 2005 shows that you can enclose those headers in your own named namespace and then use what you need from this namespace (but don't use the whole namespace, as it will introduces the namespace you want to hide.

提交回复
热议问题