Re: AI302.Containers bug : solved



To whom it may interest. It seems Find returns Back (eek!) instead of Null_Cursor (as in the AI text). [I'm using AI302 20040727 because I want the closest to Ada.Containers that compiles with Ada 95.]

On 21 Jun 2005, at 19:33, I myself wrote:

I'm using AI302.Containers, version 20040727. This call to Sorted_Sets.Element raises a CE:

      Cur := Node_Keys.Find (Nodes, Node);
      if Cur /= Null_Cursor then
         Old_Lev := Element (Cur).Level; -- <== HERE

But the set Nodes is empty yet. So Find should have returned a Null_Cursor, no? And the call never made. Node_Keys is an instance of Sorted_Sets.Generic_Keys. Thanks.

.