Re: [v3] fix libstdc++/51083

2011-11-12 Thread Gabriel Dos Reis
On Sat, Nov 12, 2011 at 9:59 AM, Jonathan Wakely wrote: > This allows __promote to be used like enable_if to constrain the TR1 > and C++11 maths function overloads so they only work for floating > point and integral types. > >        PR libstdc++/51083 >        * include/ext/type_traits.h (__promo

Re: [v3] fix libstdc++/51083

2011-11-12 Thread Jonathan Wakely
On 12 November 2011 16:24, Paolo Carlini wrote: > Hi > >> I'm undecided whether this counts as a regression or not and if it >> should be applied to the 4.6 branch - the testcases worked before TR1 >> was added or without -std=c++0x. > > Thanks a lot for fixing this! About the branch, the patch see

Re: [v3] fix libstdc++/51083

2011-11-12 Thread Paolo Carlini
Hi > I'm undecided whether this counts as a regression or not and if it > should be applied to the 4.6 branch - the testcases worked before TR1 > was added or without -std=c++0x. Thanks a lot for fixing this! About the branch, the patch seems safe enough to me, maybe just wait a couple if weeks?

[v3] fix libstdc++/51083

2011-11-12 Thread Jonathan Wakely
This allows __promote to be used like enable_if to constrain the TR1 and C++11 maths function overloads so they only work for floating point and integral types. PR libstdc++/51083 * include/ext/type_traits.h (__promote): Only define __type member for integral and floating p