<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 24.09.2013 17:14, schrieb Xiangrong
      Fang:<br>
    </div>
    <blockquote
cite="mid:CAP93jB3tMUnVmyg9zfQs0zmOm-nw1Kw2EqeQ2nax7ybRZXPHLA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2013/9/24 Sven Barth <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:pascaldragon@googlemail.com"
                target="_blank">pascaldragon@googlemail.com</a>></span><br>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">How is PNode
                declared? What is the exact error?<br>
              </div>
              <br>
            </blockquote>
            <div><br>
            </div>
            <div>PNode is declared inside TTreap generic class, the
              source is here:<br>
              <br>
              <a moz-do-not-send="true"
href="https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas">https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas</a>
              <br>
              <br>
            </div>
            <div>The exact error is:<br>
              <br>
              Error: Incompatible types: got
              "TStringMapper.TTreap$AnsiString$AnsiString" expected
              "TStringMapper"<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    The error is exactly the same as the one in your TIntTree, because
    the return type of TTreap<String, String>.Reversed is
    TTreap<String, String> and nothing else. Thus the solution is
    the same as for TIntTree.Next: either none or a new "Reversed"
    function. And again: This problem would also occur with non generic
    classes.<br>
    <br>
    Regards,<br>
    Sven<br>
  </body>
</html>