[Click] `int SimpleQueue::_drops' is private error

Eddie Kohler kohler at CS.UCLA.EDU
Tue Mar 8 11:58:48 EST 2005


Hi Alan,

Add "friend class NameOfYourClass;" to elements/standard/simplequeue.hh.

Eddie


Alan Tang wrote:
> Dear folks
> 
> I see in mixedqueue.cc in function push "if (_drops == 0)". I subclass my own class i.e. smartqueue.cc from the same super class NotifierQueue. I want to use variable _drops, when I make install I got error /simplequeue.hh:91: `int SimpleQueue::_drops' is private
> 
> Any help is highly appreciated. 
> 
> Best Wishes!
> Alan
> 
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list