D
Dave
Hello all,
In the code below, I use a pointer to an object under construction. Is the
usage below legal? I have come across similar code at work. It compiles,
but I'm not sure it's really legal...
Thanks,
Dave
struct D;
struct B
{
B(D *);
};
struct D: B
{
D(): B(this) {}
};
In the code below, I use a pointer to an object under construction. Is the
usage below legal? I have come across similar code at work. It compiles,
but I'm not sure it's really legal...
Thanks,
Dave
struct D;
struct B
{
B(D *);
};
struct D: B
{
D(): B(this) {}
};