<div dir="ltr">On Mon, Jul 14, 2008 at 8:23 PM, Zhongxing Xu <<a href="mailto:mymlreader@gmail.com">mymlreader@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If the operator[] overloading in ilist.h is commented, it compiles. Where is the ilist_iterator::operator[] defined then?<br>I cannot find it in std::iterator.</blockquote></div><br>Let me answer my silly question:<br><br>
If we don't define operator[] as private functions, when operator[] is called on ilist_iterator, ilist_iterator::operator pointer() will be called. So it compiles. :-)<br></div>