A
alexwu
typedef union _MYUNION
struct {
short a;
short b;
};
long c;
} MYUNION;
class myclass
{
MYUNION myu;
public:
myclass();
};
// How to initialize myu in the constructor initializer list
myclass::myclass()
{
....
}
struct {
short a;
short b;
};
long c;
} MYUNION;
class myclass
{
MYUNION myu;
public:
myclass();
};
// How to initialize myu in the constructor initializer list
myclass::myclass()
{
....
}