• aaaaaaaaargh@feddit.org
    link
    fedilink
    arrow-up
    6
    ·
    2 hours ago

    What!? constexpr is one of the best additions to C++ ever since. And I do like auto even though I get why some folks can’t stand it.

  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    4 hours ago

    I don’t get it. What’s wrong with constexpr? It’s vastly preferable to macros due to type safety, and const due to compile-time optimization.