N
Noah Roberts
Consider the following hierarchy:
struct record
{
};
struct test_record
{
};
struct an_object
{
test_record r;
};
I want a member pointer variable to r but I want it to be cast as a
record. Is this possible? I tried the following:
static_cast<record an_object::*>(&an_object::r);
No worky.
struct record
{
};
struct test_record
{
};
struct an_object
{
test_record r;
};
I want a member pointer variable to r but I want it to be cast as a
record. Is this possible? I tried the following:
static_cast<record an_object::*>(&an_object::r);
No worky.