this post was submitted on 22 Mar 2024
225 points (94.1% liked)

Programmer Humor

32503 readers
670 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] tunetardis@lemmy.ca 35 points 8 months ago (1 children)

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

[–] BeigeAgenda@lemmy.ca 5 points 8 months ago (1 children)

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

[–] brisk@aussie.zone 5 points 8 months ago* (last edited 8 months ago) (1 children)

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

[–] BeigeAgenda@lemmy.ca 3 points 8 months ago

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