Click here to Skip to main content
15,895,011 members

Comments by debil123 (Top 7 by date)

debil123 17-Apr-13 10:49am View    
But both copy constructors are the same. why not to implement single generic one?
I mean- that's the original question is all about.
debil123 17-Apr-13 10:08am View    
In that way you have to implement copy constructor instead of the assignment operator for each iterator type.
I thought it is obvious from my original post.
debil123 14-Apr-13 9:42am View    
It does do something that the base class can't do. The base class can't check the someCheck(). That's the whole point. All this needed for the begin(), end(), erase() and other functions which the iterator itself doesn't know how to do.
debil123 14-Apr-13 2:45am View    
it doesn't compile. assignment operator, although its trivial should be added to support the assignment needed by my begin() function.
debil123 13-Apr-13 17:51pm View    
It is not the answer I was looking for. Did you read the "p.s." thing? It states that the example is just to clarify my question- how to template the inherited class.