• flying_gel@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    13 hours ago

    I do appreciate how newer C++ standards have made these kinds of things a lot easier too.

    Define all comparison operators with just one one line using C++20

    auto operator<=>(const ClassName&) const = default;