Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #151

Re: User-defined literal suffixes with or without underscore?

Message-ID <irib4h$7un$1@dont-email.me> (permalink)
Newsgroups comp.std.c++
From Daniel Krügler <daniel.kruegler@googlemail.com>
Subject Re: User-defined literal suffixes with or without underscore?
Organization A noiseless patient Spider
References <3b29f4ac-44b4-4f49-954e-21a11ab9f15a@y19g2000yqk.googlegroups.com>
Date 2011-05-25 08:53 -0600

Show all headers | View raw


On 2011-05-25 09:09, McNepp wrote:
>
> §2.14.8 of the latest Standard deals with user-defined literals.
> Some of the examples use the suffix "w" for the declaration of a user-
> defined literal.
>
> OTOH, §17.6.4.3.5 User-defined literal suffixes
>
> states "1 Literal suffix identifiers that do not start with an
> underscore are reserved for future standardization."
>
> Shouldn't the examples match this requirement?

Yes. Are you sure that you checked the most recent draft or FDIS? I find
only _w as identifier in the documents N3290 and N3291. Also, a new
normative wording has been added to 2.14.8:

"Some identifiers appearing as ud-suffixes are reserved for future
standardization (17.6.4.3.5). A program containing such a ud-suffix is
ill-formed, no diagnostic required."

This was done, because it is possible to read 17.6.4.3.5 in a way that
this would only be a library-relevant constraint. The addition to 2.14.8
*and* the renaming of the examples clarified that this is a
language-wide requirement.

HTH & Greetings from Bremen,

- Daniel Krügler


-- 
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

User-defined literal suffixes with or without underscore?  McNepp <mcnepp02@googlemail.com> - 2011-05-25 01:09 -0600
  Re: User-defined literal suffixes with or without underscore?  Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-05-25 08:53 -0600

csiph-web