Bug#666539: Patch to type_traits works

2012-09-29 Thread Sylvestre Ledru
Hello Mario,

Le 28/09/2012 01:42, Mario Lang a écrit :
 Hi.

 The patch (http://clang.llvm.org/libstdc++4.7-clang11.patch) mentioned
 in thsi bug report to type_traits in libstdc++ is very small, and
 actually appears to fix the problem.  It is not only chrono that can
 be included with this minimal change applied, now thread (which is a
 quite nice part of C++11) can be used with clang as well since thread 
 depends
 on chrono.
Sure but this is related to libstdc++ and not really to clang packaging.

So, you want me to reassign this bug to libstdc++ and write the patch
for it ?

Thanks
Sylvestre


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#666539: Patch to type_traits works

2012-09-27 Thread Mario Lang
Hi.

The patch (http://clang.llvm.org/libstdc++4.7-clang11.patch) mentioned
in thsi bug report to type_traits in libstdc++ is very small, and
actually appears to fix the problem.  It is not only chrono that can
be included with this minimal change applied, now thread (which is a
quite nice part of C++11) can be used with clang as well since thread depends
on chrono.

Index: include/std/type_traits
===
--- include/std/type_traits (revision 185724)
+++ include/std/type_traits (working copy)
@@ -1746,7 +1746,7 @@
 
   templatetypename _Tp, typename _Up
 struct common_type_Tp, _Up
-{ typedef decltype(true ? declval_Tp() : declval_Up()) type; };
+{ typedef typename decaydecltype(true ? declval_Tp() : 
declval_Up())::type type; };
 
   templatetypename _Tp, typename _Up, typename... _Vp
 struct common_type_Tp, _Up, _Vp...


-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer URL:http://debian.org/
  .''`. | Get my public key via finger mlang/k...@db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-  URL:http://delysid.org/  URL:http://www.staff.tugraz.at/mlang/


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org