-
Key: DDSPSMC-4
-
Legacy Issue Number: 16308
-
Status: closed
-
Source: Real-Time Innovations ( Sumant Tambe)
-
Summary:
Duration and Time have some arithmetic operators that have the form:
const Duration operator /(uint32_t lhs, const Duration& rhs);
const Time operator /(uint32_t lhs, const Time& rhs);In the above, the intent of dividing a scalar by Duration/Time is not clear.
Duration/N is conceivable but not N/Duration.
Proposed solution:
Remove the following free functions.
const Duration operator /(uint32_t lhs, const Duration& rhs);const Time operator /(uint32_t lhs, const Time& rhs);
-
Reported: DDS-PSM-Cxx 1.0b1 — Wed, 1 Jun 2011 04:00 GMT
-
Disposition: Resolved — DDS-PSM-Cxx 1.0b2
-
Disposition Summary:
Removed the operation:
const Duration operator /(uint32_t lhs, const Duration& rhs);from the Duration class. The Time class did not have such a method to begin with.
-
Updated: Fri, 6 Mar 2015 20:58 GMT
DDSPSMC — Dividing a scalar in Duration and Time classes
- Key: DDSPSMC-4
- OMG Task Force: ISO/IEC C++ DDS PSM FTF