Re: [PATCH] PR libstdc++/48101 improve errors for invalid container specializations

2017-11-22 Thread Ian Lance Taylor
On Wed, Nov 22, 2017 at 3:06 AM, Jonathan Wakely wrote: > On 22/11/17 10:56 +, Jonathan Wakely wrote: >> >> On 22/11/17 11:23 +0100, Rainer Orth wrote: >>> >>> Hi Jonathan, >>> This uses static_assert to improve the errors when attempting to instantiate invalid specializations of con

Re: [PATCH] PR libstdc++/48101 improve errors for invalid container specializations

2017-11-22 Thread Jonathan Wakely
On 22/11/17 10:56 +, Jonathan Wakely wrote: On 22/11/17 11:23 +0100, Rainer Orth wrote: Hi Jonathan, This uses static_assert to improve the errors when attempting to instantiate invalid specializations of containers, e.g. set, or unordered_set, hash> (which mixes up the order of the hasher

Re: [PATCH] PR libstdc++/48101 improve errors for invalid container specializations

2017-11-22 Thread Jonathan Wakely
On 22/11/17 11:23 +0100, Rainer Orth wrote: Hi Jonathan, This uses static_assert to improve the errors when attempting to instantiate invalid specializations of containers, e.g. set, or unordered_set, hash> (which mixes up the order of the hasher and equality predicate arguments). This means i

Re: [PATCH] PR libstdc++/48101 improve errors for invalid container specializations

2017-11-22 Thread Rainer Orth
Hi Jonathan, > This uses static_assert to improve the errors when attempting to > instantiate invalid specializations of containers, e.g. set, > or unordered_set, hash> (which mixes up the > order of the hasher and equality predicate arguments). > > This means instead of more than 100 lines of con

[PATCH] PR libstdc++/48101 improve errors for invalid container specializations

2017-11-21 Thread Jonathan Wakely
This uses static_assert to improve the errors when attempting to instantiate invalid specializations of containers, e.g. set, or unordered_set, hash> (which mixes up the order of the hasher and equality predicate arguments). This means instead of more than 100 lines of confusing errors for https: