Created on 2010-10-14.00:00:00 last changed 174 months ago
Proposed resolution:
Change the signature in [time] and [time.duration.nonmember] to:
template <class Rep1, classPeriodRep2, classRep2Period> duration<typename common_type<Rep1, Rep2>::type, Period> operator*(const Rep1& s, const duration<Rep2, Period>& d);
In [time] and [time.duration.nonmember] we have:
template <class Rep1, class Period, class Rep2>
duration<typename common_type<Rep1, Rep2>::type, Period>
operator*(const Rep1& s, const duration<Rep2, Period>& d);
Everywhere else, we always have <rep, period> in that order for a given type. But here, we have Period and Rep2 in reverse order for <Rep2, Period>. This is probably of little importance, since the template parameters are seldom spelled out for a function like this. But changing it now will eliminate a potential source of future errors and confusion.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
| 2011-04-11 11:23:23 | admin | set | status: voting -> wp |
| 2011-03-05 15:24:28 | admin | set | status: ready -> voting |
| 2010-11-13 23:03:59 | admin | set | status: new -> ready |
| 2010-10-29 14:46:33 | admin | set | messages: + msg5191 |
| 2010-10-14 00:00:00 | admin | create | |