Re: [v3 PATCH] Make optional's comparisons be two-parameter templates.

2017-03-10 Thread Jonathan Wakely
On 19/02/17 17:53 +0200, Ville Voutilainen wrote: This has not been adopted by LEWG/LWG yet, but was submitted as a proposed resolution for a new LWG issue; optional can't current be compared to a T, and an optional can't be compared to something non-T that is comparable to a T. This approach fix

[v3 PATCH] Make optional's comparisons be two-parameter templates.

2017-02-19 Thread Ville Voutilainen
This has not been adopted by LEWG/LWG yet, but was submitted as a proposed resolution for a new LWG issue; optional can't current be compared to a T, and an optional can't be compared to something non-T that is comparable to a T. This approach fixes both of those problems, allowing optional's compa