This is the mail archive of the
mailing list for the GCC project.
Re: [libstdc++,C++11] Library style for user-defined literal operators
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: 3dw4rd at verizon dot net, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Oct 2013 20:40:28 +0200
- Subject: Re: [libstdc++,C++11] Library style for user-defined literal operators
- Authentication-results: sourceware.org; auth=none
- References: <21250409 dot 154011 dot 1382459254530 dot JavaMail dot root at vms170015>
email@example.com ha scritto:
>Let me try that again. Sorry for the dupe and the bad subject in the
>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
>strictly necessary to have no space between quotes and suffix
>identifier when the suffix identifier is a keyword. On the other hand,
>consistently using no space means never having to say you're sorry. It
>is also consistent with our style of not having space between operator
>and, say '+'. I believe that first allowing the space in the first
>place might have been a mistake in the standard. The (to be committed
>tonight) literal operators for complex<float> need to have no space
>because the suffix is 'if'. We might as well be consistent. I think
>this is better style too.
Looks Ok to me.