• flying_gel@lemmy.world
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    5 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;