P
Patrick Kowalzick
Dear all,
I have the following code:
// ************************
class A {};
class B : public A {};
void foo( const B & ) {}
int main()
{
typedef void(* T_A_ptr)( const A & );
void(* B_ptr)( const B & ) = foo;
T_A_ptr B_Base_ptr = T_A_ptr( B_ptr );
}
// ************************
and want to simplify the last to lines ( no, not the } ). I want to press it
in one line. Has anybody an idea? The function pointer syntax is quite
confusing .
Regards,
Patrick
I have the following code:
// ************************
class A {};
class B : public A {};
void foo( const B & ) {}
int main()
{
typedef void(* T_A_ptr)( const A & );
void(* B_ptr)( const B & ) = foo;
T_A_ptr B_Base_ptr = T_A_ptr( B_ptr );
}
// ************************
and want to simplify the last to lines ( no, not the } ). I want to press it
in one line. Has anybody an idea? The function pointer syntax is quite
confusing .
Regards,
Patrick