• marcos@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    7 days ago

    What is happening there?

    Is it about templates? I can’t find any reference for that syntax.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        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
          ·
          20 hours 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
            ·
            17 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.