• Gladaed@feddit.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    2 days ago

    If you tell the Compiler to be careful and avoid writing c code c++ does not segfault. This is a user error.

    You can technically even write Assembler code and compile with gpp.

    • T156@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      Does it count as user error if the user has to micromanage the compiler?

      • Gladaed@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Yes. Unless you have a really good reasons there are safe and portable versions you should use instead.