this post was submitted on 14 Dec 2023
928 points (99.2% liked)
xkcd
8791 readers
106 users here now
A community for a webcomic of romance, sarcasm, math, and language.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
C++ user with operator overloading: "T2 minus T1."
Let someone else implement the class. There's probably a library for it.
Is there a straightforward way to know which overloading will be used or is it just a roulette every time you add a sketchy new library to your build?