Re: [boost] Re: Copy Constructible Concept

2002-11-21 Thread David Abrahams
Gennaro Prota <[EMAIL PROTECTED]> writes: > In conclusion, I really hope that this is "in conclusion", because this thread went OT for Boost a long, long time ago. Please take it to comp.std.c++ if you want to continue it. Thanks, Dave -- David Abrahams [EMAIL PROTE

[boost] Re: Copy Constructible Concept

2002-11-21 Thread Gennaro Prota
On Wed, 20 Nov 2002 10:00:14 -0500, Douglas Gregor <[EMAIL PROTECTED]> wrote: >On Saturday 16 November 2002 12:24 pm, Gennaro Prota wrote: >> Sorry for the late reply (it's just my timezone). >> >> You wrote: >> >I don't see the contradiction here. 5.2.10/7 says that you can cast from a >> > T poi

Re: [boost] Re: Copy Constructible Concept

2002-11-20 Thread Douglas Gregor
On Saturday 16 November 2002 12:24 pm, Gennaro Prota wrote: > Sorry for the late reply (it's just my timezone). > > You wrote: > >I don't see the contradiction here. 5.2.10/7 says that you can cast from a > > T pointer to a U pointer and back to a T pointer and get the original > > pointer back. >

[boost] Re: Copy Constructible Concept

2002-11-17 Thread Gennaro Prota
Terje, this is my last reply here because we are widely off-topic. Ah, is your mail server up? I repeatedly get delivery status notifications (Status: 5.1.1: bad destination mailbox address). You wrote: >> >Much later, >> >the ANSI/ISO C++ committee had a stream of formal definition experts >> >e

Re: [boost] Re: Copy Constructible Concept

2002-11-16 Thread Terje Slettebø
>From: "Gennaro Prota" <[EMAIL PROTECTED]> > On Sat, 16 Nov 2002 00:07:11 +0100, "Terje Slettebø" > <[EMAIL PROTECTED]> wrote: > > >>From: "Gennaro Prota" <[EMAIL PROTECTED]> > >> Who knows? When I encounter these sorts of situations I dream a > >> standard where propositions can be demonstrated l

Re: [boost] Re: Copy Constructible Concept

2002-11-16 Thread Gabriel Dos Reis
Gennaro Prota <[EMAIL PROTECTED]> writes: [...] | I really miss formality in the standard. Even answering a simple | question like: "is static_cast(-1) guaranteed to give | UINT_MAX on all conforming implementations?" is quite a project. How so? -- Gaby

[boost] Re: Copy Constructible Concept

2002-11-16 Thread Gennaro Prota
On Sat, 16 Nov 2002 00:07:11 +0100, "Terje Slettebø" <[EMAIL PROTECTED]> wrote: >>From: "Gennaro Prota" <[EMAIL PROTECTED]> >> Who knows? When I encounter these sorts of situations I dream a >> standard where propositions can be demonstrated like in mathematics or >> counter-examples provided. Don

[boost] Re: Copy Constructible Concept

2002-11-16 Thread Gennaro Prota
Sorry for the late reply (it's just my timezone). You wrote: >I don't see the contradiction here. 5.2.10/7 says that you can cast from a T >pointer to a U pointer and back to a T pointer and get the original pointer >back. Unfortunately the standard is a great piece of work but fails miserably

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread David Abrahams
Douglas Gregor <[EMAIL PROTECTED]> writes: > I've given probably the closest thing to a proof that one can get without > having a formal specification. It uses only semantic equivalences given in > the three paragraphs it cites. Is there a problem with it? FWIW, I'm satisfied. --

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Douglas Gregor
On Friday 15 November 2002 04:45 pm, Gennaro Prota wrote: > Now, let me say that there's an explicit > contradiction (as usual in such scenarios where a "special" case is assumed > to be specified separately) between 5.2.10/10 and 5.2.10/7, because the > latter says that in > > reinterpret_cast(&

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Terje Slettebø
>From: "Gennaro Prota" <[EMAIL PROTECTED]> > --- David Abrahams <[EMAIL PROTECTED]> wrote: > > Gennaro Prota <[EMAIL PROTECTED]> writes: > > > > Who knows? When I encounter these sorts of situations I dream a > > > standard where propositions can be demonstrated like in mathematics or > > > counte

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Terje Slettebø
>From: "Gennaro Prota" <[EMAIL PROTECTED]> > On Fri, 15 Nov 2002 16:05:05 -0500, David Abrahams > <[EMAIL PROTECTED]> wrote: > > >Douglas Gregor <[EMAIL PROTECTED]> writes: > >> You'll have to back that up with some standardese. AFAICT, 5.2.10/10 lets > >> addressof() work: > >> "That is, a refe

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
--- David Abrahams <[EMAIL PROTECTED]> wrote: > Gennaro Prota <[EMAIL PROTECTED]> writes: > > Who knows? When I encounter these sorts of situations I dream a > > standard where propositions can be demonstrated like in mathematics or > > counter-examples provided. Don't you? > > Yeah, but then I

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread David Abrahams
Gennaro Prota <[EMAIL PROTECTED]> writes: > On Fri, 15 Nov 2002 16:05:05 -0500, David Abrahams > <[EMAIL PROTECTED]> wrote: > >>Douglas Gregor <[EMAIL PROTECTED]> writes: >>> You'll have to back that up with some standardese. AFAICT, 5.2.10/10 lets >>> addressof() work: >>> "That is, a referenc

[boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
On Fri, 15 Nov 2002 16:05:05 -0500, David Abrahams <[EMAIL PROTECTED]> wrote: >Douglas Gregor <[EMAIL PROTECTED]> writes: >> You'll have to back that up with some standardese. AFAICT, 5.2.10/10 lets >> addressof() work: >> "That is, a reference cast reinterpret_cast(x) has the same effect as >

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Peter Dimov
From: "Douglas Gregor" <[EMAIL PROTECTED]> > > Just to spell it out in agonizing detail, so we can look for any holes in my > logic: > > template T* addressof(T& v) > { > return reinterpret_cast( > &const_cast(reinterpret_cast(v))); > } The only hole is that the above doesn't w

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
--- Douglas Gregor <[EMAIL PROTECTED]> wrote: > On Friday 15 November 2002 03:36 pm, Gennaro Prota wrote: > > of inventing a separate concept (say "Addressable") for them. The problem I > > see in your resolution is that AFAIK addressof() is not guaranteed to work > > by the standard. Yes, it has

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread David Abrahams
Douglas Gregor <[EMAIL PROTECTED]> writes: > On Friday 15 November 2002 03:36 pm, Gennaro Prota wrote: >> of inventing a separate concept (say "Addressable") for them. The problem I >> see in your resolution is that AFAIK addressof() is not guaranteed to work >> by the standard. Yes, it has an ext

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Douglas Gregor
On Friday 15 November 2002 03:45 pm, Douglas Gregor wrote: > On Friday 15 November 2002 03:36 pm, Gennaro Prota wrote: > > of inventing a separate concept (say "Addressable") for them. The problem > > I see in your resolution is that AFAIK addressof() is not guaranteed to > > work by the standard.

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Douglas Gregor
On Friday 15 November 2002 03:36 pm, Gennaro Prota wrote: > of inventing a separate concept (say "Addressable") for them. The problem I > see in your resolution is that AFAIK addressof() is not guaranteed to work > by the standard. Yes, it has an extremely high probability to do the right > thing,

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread David Abrahams
Douglas Gregor <[EMAIL PROTECTED]> writes: > On Friday 15 November 2002 02:42 pm, Gennaro Prota wrote: >> On Fri, 15 Nov 2002 13:24:41 -0500, Douglas Gregor <[EMAIL PROTECTED]> >> >> wrote: >> >Most likely, those present either didn't think it was a problem or didn't >> > feel strongly enough abou

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
--- Douglas Gregor <[EMAIL PROTECTED]> wrote: [...] > For reference, the address of an object can be retrieved without using > the address-of operator with the following function template: > > template T* addressof(T& v) > { > return reinterpret_cast( > &const_cast(reinterpret_

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Douglas Gregor
On Friday 15 November 2002 02:42 pm, Gennaro Prota wrote: > On Fri, 15 Nov 2002 13:24:41 -0500, Douglas Gregor <[EMAIL PROTECTED]> > > wrote: > >Most likely, those present either didn't think it was a problem or didn't > > feel strongly enough about the situation to speak up. There really aren't >

[boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
On Fri, 15 Nov 2002 13:24:41 -0500, Douglas Gregor <[EMAIL PROTECTED]> wrote: >Most likely, those present either didn't think it was a problem or didn't feel >strongly enough about the situation to speak up. There really aren't all that >many good uses for overloading operator&, and it can be a

Re: [boost] Re: Copy Constructible Concept

2002-11-15 Thread Douglas Gregor
On Friday 15 November 2002 10:31 am, Gennaro Prota wrote: > I don't see the reason for the inclusion of operator & either. However > if really that reason doesn't exist it is *vry* strange that this > wasn't noticed during discussions about library issue 69: > > http://std.dkuug.dk/jtc1/sc

[boost] Re: Copy Constructible Concept

2002-11-15 Thread Gennaro Prota
On Tue, 29 Oct 2002 16:24:19 -0500, Douglas Gregor <[EMAIL PROTECTED]> wrote: >On Tuesday 29 October 2002 04:10 pm, Kevin S. Van Horn wrote: >> Why are requirements about the address operator (&) included in the >> CopyConstructible concept at >> http://www.boost.org/libs/utility/CopyConstructible