Hi all<P>I'm writing a library in C++ and I would like to use namespaces, as it is suggested. But I'm having some problems.<P>First, I've created all my header and source files without any namespace.
Microsoft’s Visual Studio .NET has introduced many new concepts to the Visual Studio developer, including the Microsoft Intermediate Language (MSIL) with runtime compilation, garbage collection, ...
namespace test { struct foo { int a; }; int getA(foo f) { return f.a; } } int main() { test::foo f; f.a = 5; return getA(f); } This compiles fine at least on two different versions of G++, and runs as ...