Patchwork [v3] Implement LWG 2004

login
register
mail settings
Submitter Paolo Carlini
Date Aug. 31, 2011, 10:30 a.m.
Message ID <4E5E0D4C.5030504@oracle.com>
Download mbox | patch
Permalink /patch/112502/
State New
Headers show

Comments

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

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)