devilish666@lemmy.world to Programmer Humor@lemmy.ml · 9 months agoTrue Storylemmy.worldimagemessage-square32fedilinkarrow-up1245arrow-down115
arrow-up1230arrow-down1imageTrue Storylemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 9 months agomessage-square32fedilink
minus-squaretunetardis@lemmy.calinkfedilinkarrow-up35·9 months agoLooks like we’ve got a Java programmer here taking C++ for a spin.
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up5·9 months agoYep, first thing that comes to mind is that header only classes need to use inline functions.
minus-squarebrisk@aussie.zonelinkfedilinkarrow-up5·edit-29 months agoMember functions that are defined within a class definition are implicitly inline
minus-squareBeigeAgenda@lemmy.calinkfedilinkarrow-up3·9 months agoAh I see now that I mixed it up with classless functions in a header.
Looks like we’ve got a Java programmer here taking C++ for a spin.
Yep, first thing that comes to mind is that header only classes need to use inline functions.
Member functions that are defined within a class definition are implicitly
inline
Ah I see now that I mixed it up with classless functions in a header.