Re: [PATCH] libstdc++: Fix operator overload resolution for calendar types

2020-08-27 Thread Jonathan Wakely via Gcc-patches
On 25/08/20 15:47 -0400, Patrick Palka via Libstdc++ wrote: My original patch that implemented the calendar type operations failed to enforce a constraint on some of the addition/subtraction operator overloads that take a 'months' argument: Constraints: If the argument supplied by the caller

Re: [PATCH] libstdc++: Fix operator overload resolution for calendar types

2020-08-25 Thread Patrick Palka via Gcc-patches
On Tue, 25 Aug 2020, Patrick Palka wrote: > My original patch that implemented the calendar type operations failed > to enforce a constraint on some of the addition/subtraction operator > overloads that take a 'months' argument: > > Constraints: If the argument supplied by the caller for the

[PATCH] libstdc++: Fix operator overload resolution for calendar types

2020-08-25 Thread Patrick Palka via Gcc-patches
My original patch that implemented the calendar type operations failed to enforce a constraint on some of the addition/subtraction operator overloads that take a 'months' argument: Constraints: If the argument supplied by the caller for the months parameter is convertible to years, its