Re: [[C++ PATCH]] Implement C++2a P0330R2 - Literal Suffixes for ptrdiff_t and size_t

2021-02-04 Thread Tam S. B. via Gcc-patches
`__cpp_size_t_suffix` is defined as 202006L, but the draft standard says 202011L: http://eel.is/c++draft/cpp.predefined#tab:cpp.predefined.ft-row-48 From: Gcc-patches on behalf of Ed Smith-Rowland via Gcc-patches Sent: Tuesday, February 2, 2021 6:19 To:

Re: [PATCH] Define [range.cmp] comparisons for C++20

2019-10-22 Thread Tam S. B.
> commit b948d3f92d7bbe4d53237cb20ff40a15fa123988 > Author: Jonathan Wakely > Date: Thu Oct 17 15:20:38 2019 +0100 > > Define [range.cmp] comparisons for C++20 > > Define std::identity, std::ranges::equal_to, std::ranges::not_equal_to, > std::ranges::greater, std::ranges::less,

Re: C++ PATCH for C++20 P0388R4 (conversions to arrays of unknown bounds) and CWG 1307 (c++/91364, c++/69531)

2019-10-06 Thread Tam S. B.
Hi, sorry for chiming in. IIUC P0388R4 does not allow implicit conversion from `T(*)[]` to `T(*)[N]`. Per [conv.qual]/3, > A prvalue of type `T1` can be converted to type `T2` if the cv-combined type > of `T1` and `T2` is `T2`. When T1 is `T(*)[]` and T2 is `T(*)[N]`, the "cv-combined type" i