[v3] Implement LWG 2004

Submitted by Paolo Carlini on Aug. 31, 2011, 10:30 a.m.

Details

Message ID 4E5E0D4C.5030504@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Aug. 31, 2011, 10:30 a.m.
Hi,

tested x86_64-linux, committed to mainline.

Paolo.

///////////////////
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.

Patch hide | download patch | download mbox

Index: include/std/chrono
===================================================================
--- include/std/chrono	(revision 178363)
+++ include/std/chrono	(working copy)
@@ -395,7 +395,7 @@ 
 	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)