Exemplo n.º 1
0
bool boolean::operator==(const data &other) const {
  if (type() == other.type())
    return (value == other.as_boolean().value);
  return false;
}
Exemplo n.º 2
0
bool boolean::operator<(const data &other) const {
  if (type() == other.type())
    return (value < other.as_boolean().value);
  return type() < other.type();
}