Hello everyone,
According to standard, the code should not compile.
http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html
But it can compile without any issues in Visual Studio 2008, without any warnings and even if I select disable language extensions to yes.Code:template <typename T> struct Base { int i; }; template <typename T> struct Derived : public Base<T> { int get_i() { return i; } };
Any comments? What is wrong?
thanks in advance,
George