scope of using declaration within a namespace

前端 未结 5 1129
猫巷女王i
猫巷女王i 2020-11-30 06:17

Is it safe (and correct) in a C++ header file to use the using declaration within a namespace as follows:

#include 
nam         


        
5条回答
  •  悲哀的现实
    2020-11-30 07:06

    It will not pollute any other namespaces, but it certainly will pollute the MyNamespace namespace.

提交回复
热议问题