Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #70687
| Subject | Re: I'd like to have unusing |
|---|---|
| Newsgroups | comp.lang.c++ |
| References | (8 earlier) <moRMF.108547$MD2.99172@fx48.iad> <qu0sj5$p5b$1@dont-email.me> <zxTMF.36001$Cb2.6466@fx44.iad> <713d413f-ccfe-451d-8fa6-76fbab41dc43@googlegroups.com> <0b98c7dd-04e4-40dd-bbc9-c14309c5d62d@googlegroups.com> |
| From | Richard Damon <Richard@Damon-Family.org> |
| Message-ID | <CeqNF.7215$yD2.4375@fx35.iad> (permalink) |
| Organization | Forte - www.forteinc.com |
| Date | 2019-12-27 11:24 -0500 |
On 12/26/19 6:20 AM, Öö Tiib wrote: > On Thursday, 26 December 2019 13:01:25 UTC+2, Öö Tiib wrote: >> On Thursday, 26 December 2019 02:55:04 UTC+2, Pavel wrote: >>> Alf P. Steinbach wrote: >>>> On 25.12.2019 23:28, Pavel wrote: >>>> >>>>> B. If an identifier starting with _ not followed by an uppercase letter >>>>> is used by C++ implementation, it should be used as a name in the global >>>>> namespace. >>>> >>>> ... or namespace `std`. >>> *that* is what does not seem to follow from anything. >> >> There standard has chosen to other way of reserving, the menace >> of undefined behavior when user touches namespace std in wrong >> way: >> "The behavior of a C++ program is undefined if it adds declarations >> or definitions to namespace std or to a namespace within namespace >> std unless otherwise specified. A program may add a template >> specialization for any standard library template to namespace std >> only if the declaration depends on a user-defined type and the >> specialization meets the standard library requirements for the original >> template and is not explicitly prohibited." > > Note that by your interpretation, Pavel, standard is violating itself: > <https://en.cppreference.com/w/cpp/utility/functional/placeholders> > Those names are reserved for the Standard to use. There is absolutely nothing in the Standard that prohibit it from taking a particular name in that set and defining it for use by the user. In fact, that is one of the reason that in C, the 'true name' for the boolean type is _Bool, as that was a name that was reserved for the implementation, and thus should not legally have previously appeared in any user code, so no backwards breakage introducing it (many user applications had a type called bool defined in many different ways). It was only by including a specific header that the symbol bool got its now standard definition, so old programs could stay valid as they didn't include that header and new programs could include the header and get the nice name. Note the words, "unless otherwised specified", That section you reference specifies a particular set of symbols and how they can be used.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-12 12:49 +0100
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 13:51 +0100
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-12 05:47 -0800
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 17:58 +0100
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-12 09:40 -0800
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-13 09:23 +0100
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 17:58 +0100
Re: I'd like to have unusing boltar@nowhere.co.uk - 2019-12-12 16:23 +0000
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 13:19 -0500
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-25 20:09 +0100
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 16:37 -0500
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-25 22:56 +0100
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 17:06 -0500
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-25 14:14 -0800
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 17:28 -0500
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-26 00:49 +0100
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 19:54 -0500
Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-26 03:53 +0100
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 22:32 -0500
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-26 03:01 -0800
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-26 03:20 -0800
Re: I'd like to have unusing Richard Damon <Richard@Damon-Family.org> - 2019-12-27 11:24 -0500
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-27 09:22 -0800
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-02 23:47 -0500
Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2020-01-02 23:46 -0800
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-04 23:46 -0500
Re: I'd like to have unusing Richard Damon <Richard@Damon-Family.org> - 2020-01-04 18:43 -0500
Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-04 23:55 -0500
Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 18:29 +0000
Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 18:34 +0000
Re: I'd like to have unusing Daniel <danielaparker@gmail.com> - 2019-12-12 11:17 -0800
Re: I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-12 19:40 +0100
Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 19:56 +0000
Re: I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-13 06:35 +0100
csiph-web