• Subverb
      link
      6
      edit-2
      3 days ago

      This isn’t malloc though. I have to assume the cast is because the user has experience with the output from an LLM being untrustworthy.

    • @[email protected]
      link
      fedilink
      104 days ago

      True. Although given how easy it is to cast void pointers to the wrong damn thing, it would be nice if you did, makes refactoring much easier. Makes me appreciate std::any all the more.

      • @[email protected]
        link
        fedilink
        3
        edit-2
        2 days ago

        Void pointer should be avoided anyways. Even I find them rare and I mostly work in embedded RTOS