chrono (operator*(const _Rep1&, const duration<>&)): Fix order of template parameters per LWG 2004.

2011-08-31  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/chrono (operator*(const _Rep1&, const duration<>&)):
	Fix order of template parameters per LWG 2004.

From-SVN: r178374
This commit is contained in:
Paolo Carlini 2011-08-31 10:29:31 +00:00 committed by Paolo Carlini
parent 24c3410793
commit dbb45bf915
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-08-31 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/chrono (operator*(const _Rep1&, const duration<>&)):
Fix order of template parameters per LWG 2004.
2011-08-30 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_iterator.h (make_move_iterator): Implement DR2061.

View File

@ -395,7 +395,7 @@ _GLIBCXX_END_NAMESPACE_VERSION
return __cd(__cd(__d).count() * __s);
}
template<typename _Rep1, typename _Period, typename _Rep2>
template<typename _Rep1, typename _Rep2, typename _Period>
constexpr
duration<typename __common_rep_type<_Rep2, _Rep1>::type, _Period>
operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d)