• 257m@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    1 year ago

    C has typeof. Why wouldn’t C++?

    Edit: Just checked and it doesn’t. Why is C++ such a stupid language. That whole superset of C BS and they pull this off?

    • sgh@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Standard C does not have typeof. That’s just a compiler extension…

      Also the equivalent of typeof is most likely decltype or auto.