You are only browsing one thread in the discussion! All comments are available on the post page.

Return

Limonene ,

C++ user with operator overloading: “T2 minus T1.”

Let someone else implement the class. There’s probably a library for it.

kogasa ,
@kogasa@programming.dev avatar

That’s fine if T1 and T2 include a datetime with the exact local timezone. A simple timestamp or timestamp + utc offset won’t work.

worldsayshi ,

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?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines