Comment 6 for bug 1791425

Revision history for this message
In , Mpolacek (mpolacek) wrote :

struct B {
  double x;
  bool isfreex;
  bool isfreey;

  constexpr bool operator==(const B& other) const noexcept
  {
    return (x == other.x) && (isfreex == other.isfreex) && (isfreey == other.isfreey);
  }

  constexpr bool operator!=(const B& other) const noexcept { return !(*this == other); }
};

int
main ()
{
  bool b = B{} == B{};
}