added conversion ctor to create const_iterator from iterator, otherwise assigning the return value of begin() called on a non-const object to a const_iteator didn't work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-05-08 23:26:39 +00:00
parent 6d50343d87
commit cd4e32afe7

View File

@ -202,6 +202,7 @@ public: \
{ \
public: \
const_iterator() : Iterator() {} \
const_iterator(iterator i) : Iterator(i) {} \
const_iterator( Node* node, const Self* ht ) \
: Iterator( node, (Self*)ht ) {} \
const_iterator& operator++() { PlusPlus();return *this; } \