Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-26 Thread Christophe Lyon
On Mon, 26 Nov 2018 at 12:12, Jonathan Wakely wrote: > > On 26/11/18 09:30 +0100, Christophe Lyon wrote: > >On Thu, 22 Nov 2018 at 10:20, Jonathan Wakely wrote: > >> > >> On 20/11/18 17:58 -0500, Ed Smith-Rowland wrote: > >> >On 11/19/18 6:13 AM, Jonathan Wakely wrote: > >> >>On 16/11/18 19:39 -0

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-26 Thread Jonathan Wakely
On 26/11/18 09:30 +0100, Christophe Lyon wrote: On Thu, 22 Nov 2018 at 10:20, Jonathan Wakely wrote: On 20/11/18 17:58 -0500, Ed Smith-Rowland wrote: >On 11/19/18 6:13 AM, Jonathan Wakely wrote: >>On 16/11/18 19:39 -0500, Ed Smith-Rowland wrote: >>>@@ -322,67 +323,43 @@ >>> //@{ >>> /// Ret

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-26 Thread Christophe Lyon
On Thu, 22 Nov 2018 at 10:20, Jonathan Wakely wrote: > > On 20/11/18 17:58 -0500, Ed Smith-Rowland wrote: > >On 11/19/18 6:13 AM, Jonathan Wakely wrote: > >>On 16/11/18 19:39 -0500, Ed Smith-Rowland wrote: > >>>@@ -322,67 +323,43 @@ > >>> //@{ > >>> /// Return new complex value @a x plus @a y.

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-22 Thread Jonathan Wakely
On 20/11/18 17:58 -0500, Ed Smith-Rowland wrote: On 11/19/18 6:13 AM, Jonathan Wakely wrote: On 16/11/18 19:39 -0500, Ed Smith-Rowland wrote: @@ -322,67 +323,43 @@   //@{   ///  Return new complex value @a x plus @a y.   template -    inline complex<_Tp> +    inline _GLIBCXX20_CONSTEXPR complex

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-20 Thread Ed Smith-Rowland
On 11/19/18 6:13 AM, Jonathan Wakely wrote: On 16/11/18 19:39 -0500, Ed Smith-Rowland wrote: @@ -322,67 +323,43 @@   //@{   ///  Return new complex value @a x plus @a y.   template -    inline complex<_Tp> +    inline _GLIBCXX20_CONSTEXPR complex<_Tp>     operator+(const complex<_Tp>& __x, const

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-19 Thread Jonathan Wakely
On 16/11/18 19:39 -0500, Ed Smith-Rowland wrote: @@ -322,67 +323,43 @@ //@{ /// Return new complex value @a x plus @a y. template -inline complex<_Tp> +inline _GLIBCXX20_CONSTEXPR complex<_Tp> operator+(const complex<_Tp>& __x, const complex<_Tp>& __y) -{ - complex<_Tp

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-16 Thread Ed Smith-Rowland
On 11/16/18 3:53 PM, Ed Smith-Rowland wrote: On 11/16/18 12:38 PM, Daniel Krügler wrote: Am Fr., 16. Nov. 2018 um 18:13 Uhr schrieb Ed Smith-Rowland <3dw...@verizon.net>: Greetings, This is late but I wanted to put it out there just to finish a thing. It's fairly straightforward constexpr of

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-16 Thread Ed Smith-Rowland
On 11/16/18 12:38 PM, Daniel Krügler wrote: Am Fr., 16. Nov. 2018 um 18:13 Uhr schrieb Ed Smith-Rowland <3dw...@verizon.net>: Greetings, This is late but I wanted to put it out there just to finish a thing. It's fairly straightforward constexpr of operators and some simple functions for std::c

Re: [PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-16 Thread Daniel Krügler
Am Fr., 16. Nov. 2018 um 18:13 Uhr schrieb Ed Smith-Rowland <3dw...@verizon.net>: > > Greetings, > > This is late but I wanted to put it out there just to finish a thing. > > It's fairly straightforward constexpr of operators and some simple > functions for std::complex. > > The only thing that jum

[PATCH, libstdc++] Implement P0415 More constexpr for std::complex.

2018-11-16 Thread Ed Smith-Rowland
Greetings, This is late but I wanted to put it out there just to finish a thing. It's fairly straightforward constexpr of operators and some simple functions for std::complex. The only thing that jumped out was the norm function.  We had this:     struct _Norm_helper     {   template