namespace M{ void f(); void M::f(){} } int main(){}
The above code gives this error:
"ComeauTest.c", line 3: error: qualified name is not allowed in the namespace member declaration void M :: f () {}
and
g ++ also gives an error.
But
VS2010 compiles fine.
My questions:
a) What is the expected behavior?
b) $ 7.3.1.2 does not seem to indicate this limitation. What part of the Standard defines the behavior of such code?
c ++ definition namespaces member
Chubsdad
source share