this post was submitted on 22 Mar 2024
226 points (94.5% liked)

Programmer Humor

35311 readers
204 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 1 year ago (1 children)

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

[–] BeigeAgenda@lemmy.ca 5 points 1 year 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 1 year ago* (last edited 1 year ago) (1 children)

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

[–] BeigeAgenda@lemmy.ca 3 points 1 year ago

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