T
thomas
template <class T>
class BufferQueue{
public:
int BufferQueue<T>:
ushToQueue(T pkt, int timeout);
}
template<class T>
int BufferQueue<T>:
ushToQueue(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?
class BufferQueue{
public:
int BufferQueue<T>:
}
template<class T>
int BufferQueue<T>:
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?