News

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 ...
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.