Title
CR undefined in duration operators
Status
c++11
Section
[time.duration.nonmember]
Submitter
Daniel Krügler

Created on 2009-11-21.00:00:00 last changed 162 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [time.duration.nonmember] paragraphs 9 and 12:

template <class Rep1, class Period, class Rep2>
  duration<typename common_type<Rep1, Rep2>::type, Period>
  operator/(const duration<Rep1, Period>& d, const Rep2& s);

9 Returns: duration<CR(Rep1, Rep2), Period>(d) /= s.

template <class Rep1, class Period, class Rep2>
  duration<typename common_type<Rep1, Rep2>::type, Period>
  operator%(const duration<Rep1, Period>& d, const Rep2& s);

12 Returns: duration<CR(Rep1, Rep2), Period>(d) %= s.

Date: 2009-12-24.00:00:00

[ 2009-12-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Date: 2009-11-21.00:00:00

IMO CR alone is not really defined (it should be CR(Rep1, Rep2)).

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg1389
2010-10-21 18:28:33adminsetmessages: + msg1388
2009-11-21 00:00:00admincreate