Issue 16308: Dividing a scalar in Duration and Time classes (dds-psm-cxx-ftf) Source: (, ) Nature: Revision Severity: Minor 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); Resolution: Revised Text: Actions taken: June 1, 2011: received issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 01 Jun 2011 19:20:23 -0400 To: Subject: Issue/Bug Report ******************************************************************************* Name: Sumant Tambe Employer: Real-Time Innovations mailFrom: sumant@rti.com Terms_Agreement: I agree Specification: ISO/IEC C++ 2003 Language DDS PSM Section: 7.5.7 FormalNumber: ptc/2011-01-02 Version: FTF Beta 1 Doc_Year: 2011 Doc_Month: January Doc_Day: 02 Page: 15 Title: Dividing a scalar in Duration and Time classes Nature: Revision Severity: Minor CODE: 3TMw8 B1: Report Issue Description: 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); From: Sumant Tambe To: "dds-psm-cxx-ftf@omg.org" Date: Thu, 2 Jun 2011 10:17:34 -0700 Subject: RE: issue 16308 -- ISO/IEC C++ DDS PSM FTF issue Thread-Topic: issue 16308 -- ISO/IEC C++ DDS PSM FTF issue Thread-Index: AcwhMnXUwm1X6VFwSEiULcmwFGjpsgAFbSDA Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Hi, There is no free standing divide function for the Time class. So the issue is applicable to the Duration class only. Thanks, Sumant. Sumant Tambe, Ph.D. Software Engineer 408.990.7429 sumant@rti.com www.rti.com From: Juergen Boldt [mailto:juergen@omg.org] Sent: Thursday, June 02, 2011 7:36 AM To: issues@omg.org; dds-psm-cxx-ftf@omg.org Subject: issue 16308 -- ISO/IEC C++ DDS PSM FTF issue From: webmaster@omg.org Date: 01 Jun 2011 19:20:23 -0400 To: Subject: Issue/Bug Report ******************************************************************************* Name: Sumant Tambe Employer: Real-Time Innovations mailFrom: sumant@rti.com Terms_Agreement: I agree Specification: ISO/IEC C++ 2003 Language DDS PSM Section: 7.5.7 FormalNumber: ptc/2011-01-02 Version: FTF Beta 1 Doc_Year: 2011 Doc_Month: January Doc_Day: 02 Page: 15 Title: Dividing a scalar in Duration and Time classes Nature: Revision Severity: Minor CODE: 3TMw8 B1: Report Issue Description: 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); Juergen Boldt Director, Member Services 140 Kendrick Street, Building A Suite 300 Needham, MA 02494 USA Tel: 781 444 0404 x 132 fax: 781 444 0320 www.omg.org const Time operator /(uint32_t lhs, const Time& rhs);