• marcos@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    7 days ago

    Oh, I didn’t know about digraphs at all. C++ is a really big language.

    And wow, that’s a well hidden footgun.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Feels like this thing should require an extra flag in case of gcc in this day and age, or a separate compile-time defined variable, specifically for cases where you don’t want to require the flag.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        22 hours ago

        To be fair, the biggest footguns are the trigraphs, and now that I tested those do require a flag in gcc.

        The digraphs are just hard to search, never used operator symbols.