Re: [PATCH] libstdc++/complex: Remove implicit type casts in complex

2023-11-25 Thread Weslley da Silva Pereira
at 3:44 AM Jonathan Wakely wrote: > On Fri, 3 Nov 2023 at 17:47, Weslley da Silva Pereira > wrote: > > > > Hi Jonathan, > > > > I am sorry for the delay. The mailing lists libstd...@gcc.gnu.org and > gcc-patches@gcc.gnu.org have just too many emails, so your email got

Re: [PATCH] libstdc++/complex: Remove implicit type casts in complex

2023-11-03 Thread Weslley da Silva Pereira
wrote: > > > On Mon, 27 Mar 2023 at 22:25, Weslley da Silva Pereira via Libstdc++ < > libstd...@gcc.gnu.org> wrote: > >> Dear all, >> >> Here follows a patch that removes implicit type casts in std::complex. >> >> *Description:* The current im

[PATCH] libstdc++/complex: Remove implicit type casts in complex

2023-03-27 Thread Weslley da Silva Pereira via Gcc-patches
Dear all, Here follows a patch that removes implicit type casts in std::complex. *Description:* The current implementation of `complex<_Tp>` assumes that `int, double, long double` are explicitly convertible to `_Tp`. Moreover, it also assumes that: 1. `int` is implicitly convertible to `_Tp`,