friend bool operator ==(CLASS_NAME a, CLASS_NAME b){
return a.CLASS_KEY == b.CLASS_KEY;
}
friend bool operator ==(CLASS_NAME a, CLASS_NAME b){
return a.CLASS_KEY == b.CLASS_KEY;
}
#undef CLASS_NAME
#undef CLASS_KEY
class Product{
private:
int price;
string name;
public:
#define CLASS_NAME Product
#define CLASS_KEY price
#include "overload.h"
};
class Lala{
private:
int price;
string name;
public:
#define CLASS_NAME Lala
#define CLASS_KEY name
#include "overload.h"
};
class Product{
private:
int price;
string name;
public:
friend bool operator ==(Product a, Product b){
return a.price == b.price;
}
friend bool operator ==(Product a, Product b){
return a.price == b.price;
}
};
class Lala{
private:
int price;
string name;
public:
friend bool operator ==(Lala a, Lala b){
return a.name == b.name;
}
friend bool operator ==(Lala a, Lala b){
return a.name == b.name;
}
};
$a == $b | Equal | TRUE if $a is equal to $b after type juggling.
Translate strings and resources to numbers, usual math
Host *
TCPKeepAlive no
ServerAliveInterval 15
ServerAliveCountMax 10