?
=?iso-8859-1?Q?Juli=E1n?= Albo
Hello.
Is the following legal code?
class Type1 { };
class Type2 { };
class C {
public:
union {
Type1 * t1;
Type2 * t2;
};
C (Type1 * nt1) : t1 (nt1) { }
C (Type2 * nt2) : t2 (nt2) { }
};
gcc and Comeau online accepts it, but I'm not sure.
Regards.
Is the following legal code?
class Type1 { };
class Type2 { };
class C {
public:
union {
Type1 * t1;
Type2 * t2;
};
C (Type1 * nt1) : t1 (nt1) { }
C (Type2 * nt2) : t2 (nt2) { }
};
gcc and Comeau online accepts it, but I'm not sure.
Regards.