Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8290290

Remove addition of TimeInstants

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • None
    • b07

      The TimeInstant class has an operator+ member function taking another TimeInstant and returning a corresponding TimeInterval. It doesn't make semantic sense to add TimeInstants. The implementation is equivalent to performing a subtraction operation with the argument order reversed, making it kind of an inverse for subtraction. But really, this operation just shouldn't exist. Fortunately, there are no callers.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: