[litwindow-users] Re: vs 2005 compilation
Status: Alpha
Brought to you by:
hajokirchhoff
From: Hajo K. <mai...@ha...> - 2005-04-21 06:59:45
|
Hi, > > The problem occurs after the symbol is successfully located in > lwListAdapterBase. It has started to unwind. The failure occurs as at > rc==currentAggregate.end() at line 465 of dataadapterimp.cpp. During the > operator== function, the iterator check occurs and, in this case, fails. now I get it. It is actually a valid assert and has nothing to do with your code. The assert fails if you are trying to compare iterators that belong to different containers. Indeed the iterators here belong to different containers, but I did that on purpose. Hmm, seems that this is non standard. That is a bother. Why one shouldn't be allowed to do that is beyond me. What I am doing here is the following: I am searching for the symbol you passed in. find_identifier returns an iterator to that symbol. But it searches for it in many different containers so the iterator returned might belong to a different container. Every adapter has its own base container, but every member and every inherited structure inside an adapter has a container of its own. I will think about that and come up with a solution. I am glad that you've found out how to continue, though. BTW, can you please compile and run the unittests? They are meant to catch errors such as these. Regards Hajo |