this post was submitted on 12 Aug 2023
111 points (96.6% liked)

196

5334 readers
329 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

Also, when sharing art (comics etc.) please credit the creators.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 
all 9 comments
sorted by: hot top controversial new old
[–] perviouslyiner@lemm.ee 24 points 2 years ago (1 children)

"Here is the source of your error" (points to a template definition 15 levels deep in the standard library)

[–] Sivecano@lemmy.dbzer0.com 12 points 2 years ago (1 children)

"error on line" (points to syntactically perfectly fine line of code until you realize, that you forgot to add the semicolon after your macro on the previous line)

[–] Chais@sh.itjust.works 2 points 2 years ago (1 children)

Although that's gotten better in recent years, as I recall.

[–] Sivecano@lemmy.dbzer0.com 2 points 2 years ago (1 children)

yeah, think so too. at least with some standard library stuff.

[–] Chais@sh.itjust.works 2 points 2 years ago (2 children)

Isn't that mostly a matter for the compiler?

[–] Sivecano@lemmy.dbzer0.com 1 points 2 years ago

Yes, but I'm not sure how good the compiler is with arbitrary macros as opposed to the stdlib ones.

[–] Hexagon@feddit.it 3 points 2 years ago

Do you want to code in a procedural style, object oriented style, or functional style?

C++: yes

[–] RIP_Cheems@lemmy.world 1 points 2 years ago

Thank you for the meme.