I
Ingo
Hi,
the following code:
template< typename objectT
, typename worldT >
void(objectT::* getInvocationFunctionFor( objectT* v ))(worldT&)
{
return &(objectT::custom_func/*<worldT>*/);
}
will work unless I activate the commented template arg.
Only exception is VC++, but GCC 4.x and Comeau won't take it.
I would like to know, whether there is a good reason for making this
illegal and whether somebody knows a nice workaround. Or did I do
something stupid here?
Ingo
the following code:
template< typename objectT
, typename worldT >
void(objectT::* getInvocationFunctionFor( objectT* v ))(worldT&)
{
return &(objectT::custom_func/*<worldT>*/);
}
will work unless I activate the commented template arg.
Only exception is VC++, but GCC 4.x and Comeau won't take it.
I would like to know, whether there is a good reason for making this
illegal and whether somebody knows a nice workaround. Or did I do
something stupid here?
Ingo