In such situation
namespace n { void f() { void another_function(); } }
Should another_function be defined inside the n namespace or outside? VS 2012 (since November CTP ) says it should be outside, and GCC 4.7.2 on Mac says it should be inside. If I am mistaken, I get undefined character errors from linkers.
I usually find GCC more compatible with the standard, but it's C ++, and you can never be sure.
source share