[AGENT++] Oid::RnCompare()

Jochen Katz katz at agentpp.com
Sat Aug 20 00:30:15 CEST 2005


Hi Karl,

> this method compares n places of two OIDs from right to left.
> But, it only works if the OIDs have the same length.

after your mail I tested with oids of the sae length, so it worked...

> If the length is different it returns nonsense.

Ok, you possibly expected that this function does something like
 return this->reversed().nCompare(n, o.reversed());

where "1.3.5.6.3".reversed() returns "3.6.5.3.1"

Regards,
  Jochen




More information about the AGENTPP mailing list