[libstdc++,C++11] Library style for user-defined literal operators

2013-10-22 Thread 3dw4rd
Let me try that again. Sorry for the dupe and the bad subject in the previous message. This patch fixes a small stylistic nit in the user-defined literal operators in the standard library.I propose we prefer: operator""suf - with no spacerather than: operator"" suf - with spaceIt is only strict

RE: [Bug libstdc++/56430] In __airy: return-statement with a value, in function returning 'void'.

2013-06-12 Thread 3dw4rd
Here is an overdue patch for the Airy function. I repair the void function and I out two Airy functions as C++ extensions. Built and tested on x86_64-linux. OK? Ed CL_Airy Description: Binary data patch_Airy4 Description: Binary data

Re: Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread 3dw4rd
On 05/31/13, Ed Smith-Rowland<3dw...@verizon.net> wrote: > ... > 1. Put the precision first in upper case. As a matter of style I > prefer 123456L to 123456l for normal literals anyway. Also, the > precision snuggles next to the number - then you modify it. That seems > logical to me.

Re: Re: [wwwdocs] C++14 support for binary literals says Noinstead of Yes

2013-04-30 Thread 3dw4rd
On 04/30/13, Jakub Jelinek wrote: On Tue, Apr 30, 2013 at 11:23:49AM -0400, Jason Merrill wrote: > I've updated the webpage. Perhaps it would be nice if we had some testsuite coverage for it too, right now unless I'm blind there are exactly 2 testcases, using one 0b... number in each in g+

Re: more distributions

2013-03-01 Thread 3dw4rd
On 03/01/13, Ulrich Drepper wrote: I have a few more distributions to be added. The triangle distribution is the result of combining to uniform distributions and therefore quite frequently used. The von Mises distribution (the simple, 2D version) would be the first circular distribution. The pa

Re: Re: [PATCH] C++ math constants

2013-02-21 Thread 3dw4rd
On 02/21/13, Alec Teal wrote: On 21/02/13 16:32, Ulrich Drepper wrote: > How about the attached file as a start for . I used the > constexpr approach (instead of function calls) and replicated the > constants that are available in in Unix. > > What other constants to add? Pi/3 ln(3) ln(10) (fo

Re: [patch] Apply recent DRs resolutions to libstdc++

2012-11-19 Thread 3dw4rd
I looks like there were a couple #ifdef __GXX_EXPERIMENTAL_CXX0X__ in the patch. I think you want to change these to #if __cplusplus >= 201103L ? Regards, Ed

Re: Re: [C++11] PR54413 Option for turning off compiler extensions for numeric literals.

2012-11-06 Thread 3dw4rd
On 11/06/12, Jason Merrill wrote: > Why three separate flags? I thought extra flexibility might be wanted. On the other hand, *I* would never turn off just one set. I expect a food fight over all flags. Also, if, as seems reasonable, strict ANSI turns off all gnu suffixes then having

[C++11] Add cstdalign to precompiled headers.

2011-11-07 Thread 3dw4rd
Subject says it all. It's a one liner. Bootstrapped on x86_64-redhat-linux. Testing is ongoing. Ed patch Description: Binary data CL Description: Binary data

Re: Re: [C++-11] User defined literals

2011-10-31 Thread 3dw4rd
> > Oct 31, 2011 11:56:59 AM, ja...@redhat.com wrote: > > On 10/30/2011 01:13 PM, Ed Smith-Rowland wrote: > > + /* Look for a literal operator taking the exact type of numeric argument > > + as the literal value. */ > > Is this right? Do numeric literals only get here with type unsigned

Re: Re: [C++-11] User defined literals

2011-10-26 Thread 3dw4rd
Oct 26, 2011 03:39:09 PM, ja...@redhat.com wrote: On 10/26/2011 02:00 AM, Ed Smith-Rowland wrote: > The patch was bootstrapped and regtested on x86_64-linux-gnu. Really? I ran into a warning about the unused "suffix" parameter to interpret_integer. So I've fixed that error. I also added a

Re: [C++-11] User defined literals

2011-10-21 Thread 3dw4rd
Jason, I split the changelog into four parts and tweaked some of the content and formatting. Ed CL_udlit_gcc_c-family Description: Binary data CL_udlit_gcc_cp Description: Binary data CL_udlit_gcc_testsuite Description: Binary data CL_udlit_libcpp Description: Binary data