1 Apr 2002 01:09
Re: Need volunteer to supply Boost NNTP/newsgroup server
David Abrahams <david.abrahams <at> rcn.com>
2002-03-31 23:09:08 GMT
2002-03-31 23:09:08 GMT
Dietmar, The main thing preventing us from making this transition simply and painlessly is lack of expertise. If we can raise the neccessary computing resources, would you be willing to set up the system? -Dave ----- Original Message ----- From: "Dietmar Kuehl" <dietmar_kuehl <at> yahoo.com> > False in all accounts! Nothing requires the "moderator" of a newsgroup > to be a human person. Almost certainly, there will be an administrator > who is responsible for having things work smoothly but this is already > the case anyway (however, with the creation of a newsgroup I can imagine > that a new administrator would be added to deal with the newsgroup > related stuff). > > Concering posting delays, this is not required at all: Submissions to > newsgroups can be handled by a script which eg. checks that the "From" > header indicates a registered person and if this is the case just sends > the article forward. In de.comp.lang.iso-c++ we use a variation on this > scheme adding a little bit more control: Unknown poster's articles are > sent to a moderator for manual processing (in this case indeed adding a > moderation delay) as are article containing specific keywords (like(Continue reading)
> Firstly, operator= and the copy constructor can currently make use of an
> invalid pointer value. This kind of thing has been discussed on
> comp.lang.c++.moderated, and I think the consensus was that reading an
> invalid pointer value is *undefined behaviour* even in the absence of
> dereferencing. Consider the following case:
>
> shared_ptr<X> sp1 (new X);
> weak_ptr<X> wp1 (sp1);
>
> sp1.reset (); // Invalidate wp1.px
> weak_ptr<X> wp2 (wp1) // Copies invalid pointer value
> wp2 = wp1; // Copies invalid pointer value
>
> The problem is that the raw pointer value (the px member variable) becomes
> invalid once its target object is deleted (see section 3.7.3.2 para 4). To
> be safely portable, it would be better for operator= and the copy
> constructor to use the other object's get() member function to ensure that
> the px value is only read if known to be valid. IIRC, the real-world
> argument against even looking at an invalid pointer value was that some
> architectures may use registers which perform address validation or even
> cause pre-fetching of memory pages.
You are right. I am aware of the potential problem; the current
implementation seems to work in practice, so I decided to leave it as is.
RSS Feed