This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Improving shared_ptr for C++0x
On 14/11/2007, Benjamin Kosnik <bkoz@redhat.com> wrote:
>
> > Just to answer this last part.
>
> Now to answer it after actually reading your page....
>
> I see your concern now. This doesn't really fit into a status checklist.
Right, but attached anyway is an update for the shared_ptr section of
the status page to make the section names and numbers match the
working paper.
This assumes my patch is going in, since I've marked everything done :-)
I'll apply this if the other patch goes in, if not I'll adjust it first.
> I suppose this could either fit in chapter 20, in a new shared_ptr
> section, or in a implementation-defined behavior link after C++0x, a la
> what was done for C++98.
Apart from confirming that libstdc++ only does one allocation in
make_shared none of the behaviour is implementation-defined, and even
that isn't what the standard refers to as ID, since the allocations
done by make_shared are only mentioned in a note.
I modelled the doc on your locale, ctype and messages implementation
notes, so we have a few files like this that are not really user-level
docs, but definitely worth having. Hmm, then again, the messages and
locale docs are sort of user docs, since they describe libstdc++
extensions to the standard behaviour. My shared_ptr notes are pretty
useless to anyone except maintainers (but should allow me to close
PR24347 at least :)
Jon
Index: docs/html/17_intro/c++0x_status.html
===================================================================
--- docs/html/17_intro/c++0x_status.html (revision 130159)
+++ docs/html/17_intro/c++0x_status.html (working copy)
@@ -567,7 +567,7 @@
<td>done</td>
<td></td>
<td></td>
- <td><a href="tr1.html#1">1</a></td>
+ <td><a href="#1">1</a></td>
</tr>
<tr>
<td>20.6.6.2.1</td>
@@ -611,6 +611,16 @@
</tr>
<tr>
<td>20.6.6.2.6</td>
+ <td><code>shared_ptr</code> creation</td>
+ <td>done</td>
+ <td></td>
+ <td></td>
+ <td>
+ <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2351.htm">N2351</a>
+ </td>
+ </tr>
+ <tr>
+ <td>20.6.6.2.7</td>
<td><code>shared_ptr</code> comparison</td>
<td>done</td>
<td></td>
@@ -618,7 +628,7 @@
<td></td>
</tr>
<tr>
- <td>20.6.6.2.7</td>
+ <td>20.6.6.2.8</td>
<td><code>shared_ptr</code> I/O</td>
<td>done</td>
<td></td>
@@ -626,7 +636,7 @@
<td></td>
</tr>
<tr>
- <td>20.6.6.2.8</td>
+ <td>20.6.6.2.9</td>
<td><code>shared_ptr</code> specialized algorithms</td>
<td>done</td>
<td></td>
@@ -634,7 +644,7 @@
<td></td>
</tr>
<tr>
- <td>20.6.6.2.9</td>
+ <td>20.6.6.2.10</td>
<td><code>shared_ptr</code> casts</td>
<td>done</td>
<td></td>
@@ -642,7 +652,7 @@
<td></td>
</tr>
<tr>
- <td>20.6.6.2.10</td>
+ <td>20.6.6.2.11</td>
<td><code>get_deleter</code></td>
<td>done</td>
<td></td>