PR libstdc++/78420 Make std::less etc. yield total order for pointers

2018-03-08 Thread Jonathan Wakely
ual<_Tp>*): New partial specializations for pointers, using __ptr_rel_ops. (greater, less, greater_equal, less_equalcommit e03605434a5c378c55e1961402319a20af75a909 Author: Jonathan Wakely Date: Thu Mar 8 20:27:04 2018 + PR libstdc++/78420 Make std::less etc. y

Re: PR libstdc++/78420 Make std::less etc. yield total order for pointers

2018-03-13 Thread Jonathan Wakely
ass pointers by value, and 20.5.5.5 [member.functions] p2 allows us to do that. Here's a new patch with that change. commit e783a8e1c3cc0d41221796a9cadea796269a95a0 Author: Jonathan Wakely Date: Thu Mar 8 20:27:04 2018 + PR libstdc++/78420 Make std::less etc. yield total order for pointers In order to

Re: PR libstdc++/78420 Make std::less etc. yield total order for pointers

2018-03-14 Thread Jonathan Wakely
ted to trunk. This fixes a regression, but I'm not sure about backporting it yet, I haven't even tried testing it on the branches. commit 00c52c235b8dea85000f7b5e1dcff0526216a9a5 Author: Jonathan Wakely Date: Wed Mar 14 19:12:21 2018 +0000 PR libstdc++/78420 Make std::less etc. yiel

Re: PR libstdc++/78420 Make std::less etc. yield total order for pointers

2018-03-17 Thread Jonathan Wakely
On 14 March 2018 at 23:01, Jonathan Wakely wrote: > Here's a very different patch. This gets rid of the __ptr_rel_ops and > just puts the special handling for pointers directly in the > std::less<_Tp*> etc. specializations. Then std::less uses > std::less for some pointer type P*. I've also added a

Re: PR libstdc++/78420 Make std::less etc. yield total order for pointers

2018-03-22 Thread Jonathan Wakely
On 14 March 2018 at 23:01, Jonathan Wakely wrote: > Here's a very different patch. This gets rid of the __ptr_rel_ops and > just puts the special handling for pointers directly in the > std::less<_Tp*> etc. specializations. Then std::less uses > std::less for some pointer type P*. I've also added a