template <class T>
class BufferQueue{
public:
int BufferQueue<T>::pushToQueue(T pkt, int timeout);
}
template<class T>
int BufferQueue<T>::pushToQueue(T pkt, ACE_Time_Value *timeout){
cout<<"in pushToQueue"<<endl; --------Line p
return 0;
}
Suppose I have two instances BufferQueue<A_a, BufferQueue<B_b;
I want to know which instance I'm in by printing some debug messages
out in Line p
like
"in pushToQueue of A", etc.
How can I tell the compiler or change Line p to make it?