ISO C++ forbids declaration of ‘multiset’ with no type

百般思念 提交于 2019-12-02 13:45:56

You should not put using namespace std; in a header file:

Why is "using namespace std;" considered bad practice?

You can probably fix your code by moving your using namespace std; inside your own namespace changing this:

using namespace std;

namespace ns3 {

to this:

namespace ns3 {

using namespace std;

But better to remove the using namespace std; and qualify all your standard symbols with std:: or else declare them individually inside your own namespace.

namespace ns3 {

using std::string;
using std::list;
using std::multiset;
using std::queue;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!