230
True Story (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] tunetardis@lemmy.ca 35 points 6 months ago

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

[-] BeigeAgenda@lemmy.ca 5 points 6 months ago

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

[-] brisk@aussie.zone 5 points 6 months ago* (last edited 6 months ago)

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

[-] BeigeAgenda@lemmy.ca 3 points 6 months ago

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

this post was submitted on 22 Mar 2024
230 points (94.2% liked)

Programmer Humor

32050 readers
1518 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS