I have a problem comparing objects of the following class: (Only the fields are relevant)
class Rule{
private:
string _src_IP,
_src_port,
_dest_IP,
_dest_port,
_protocol; };
_src_IP and _dst_IP can contain an IP address ("0.0.0.0"-"255.255.255.255")
or "any".
_src_Port and _dst_Port can contain a port number ("0" - "65535")
or "any".
_protocol can contain "TCP", "UDP", or "any".
The difficulty is creating a comparison (operator< and operator>) which will satisfy the standard mathematical definition of a strict weak ordering.
If someone can think of something, that will be very helpful.