• marcos@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      10 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
        ·
        4 days 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
          ·
          4 days 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.