
10 Dec
2008
10 Dec
'08
9:13 p.m.
AMDG david.weber@l-3com.com wrote:
<snip>
target returns a pointer to the function object. If TargetType is void(*)() target will return an object of type void(**)().
So, I modfied my function to:
unsigned long long slotAddr = (unsigned long long)slot.target< void(*)() >(); LOG4CXX_DEBUG(logger_, "*** slotAddr = " + (boost::format("%016X") % slotAddr).str());
Sorry, I was unclear. void(*)() was just intended as an illustration of what happens to function pointers when you call target. Try dereferencing the result of target. const TargetType* target = slot.target<TargetType>(); (unsigned long long)(*target); In Christ, Steven Watanabe