Re: [PATCH] LWG 2936: update path::compare logic and optimize string comparisons

2018-12-19 Thread Christophe Lyon
On Tue, 18 Dec 2018 at 16:51, Jonathan Wakely wrote: > > The resolution for LWG 2936 defines the comparison more precisely, which > this patch implements. The patch also defines comparisons with strings > to work without constructing a temporary path object (so avoids any > memory allocations). >

[PATCH] LWG 2936: update path::compare logic and optimize string comparisons

2018-12-18 Thread Jonathan Wakely
The resolution for LWG 2936 defines the comparison more precisely, which this patch implements. The patch also defines comparisons with strings to work without constructing a temporary path object (so avoids any memory allocations). * include/bits/fs_path.h (path::compare(const string_typ