What and how does shared namespace in C++ works? Are most of the variables, types, and procedures can be used in shared name space?
klint.austero 0 Newbie Poster
Recommended Answers
Jump to PostNamespace definitions can be split across multiple files and still have the same name, is that what you mean by "shared"?
// file1.cpp namespace foo { class A {}; class B {}; } // file2.cpp namespace foo { class C {}; class D {}; }
When …
All 2 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.