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