N
NagelBagel
typedef double type;
class A {
typedef int type;
void f(type);
};
void A::f(type)
{
}
int main() { }
I was wondering if this code was correct. It compiles correctly under
gcc, but by the standard, does the last usage of type need to be
qualified as A::type?
Thanks.
class A {
typedef int type;
void f(type);
};
void A::f(type)
{
}
int main() { }
I was wondering if this code was correct. It compiles correctly under
gcc, but by the standard, does the last usage of type need to be
qualified as A::type?
Thanks.