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