• tunetardis
    link
    fedilink
    arrow-up
    35
    ·
    9 months ago

    Looks like we’ve got a Java programmer here taking C++ for a spin.

    • BeigeAgenda
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      Yep, first thing that comes to mind is that header only classes need to use inline functions.

      • brisk@aussie.zone
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        9 months ago

        Member functions that are defined within a class definition are implicitly inline

        • BeigeAgenda
          link
          fedilink
          arrow-up
          3
          ·
          9 months ago

          Ah I see now that I mixed it up with classless functions in a header.