summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/docs/html/20_util/howto.html
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 21:55:05 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 21:55:05 +0000
commita94e5126ff25d3ec64cdeb750fc684e54afb4795 (patch)
treec12b394aaf102da6356b4c8ee9a817c6f5f0ac13 /libstdc++-v3/docs/html/20_util/howto.html
parent1f04bb49dde055210af552764c449033a9f73033 (diff)
downloadppe42-gcc-a94e5126ff25d3ec64cdeb750fc684e54afb4795.tar.gz
ppe42-gcc-a94e5126ff25d3ec64cdeb750fc684e54afb4795.zip
2001-05-30 Phil Edwards <pme@sources.redhat.com>
* docs/doxygen/user.cfg.in: Minor addition. * docs/html/documentation.html: Reorganize. Put most-looked-at stuff first. * docs/html/install.html: Update for 3.0. HTML fixups. * docs/html/17_intro/howto.html: Likewise. * docs/html/18_support/howto.html: Likewise. * docs/html/19_diagnostics/howto.html: Likewise. * docs/html/20_util/howto.html: Likewise. * docs/html/23_containers/howto.html: Likewise. * docs/html/24_iterators/howto.html: Likewise. More notes. * docs/html/25_algorithms/howto.html: Likewise. * docs/html/26_numerics/howto.html: Likewise. More notes. * docs/html/27_io/howto.html: Likewise. * docs/html/ext/howto.html: Likewise. * docs/html/faq/index.html: Likewise. * docs/html/faq/index.txt: Regenerate. * docs/html/27_io/iostreams_hierarchy.pdf: Remove in favor of Doxygen-created documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/docs/html/20_util/howto.html')
-rw-r--r--libstdc++-v3/docs/html/20_util/howto.html23
1 files changed, 5 insertions, 18 deletions
diff --git a/libstdc++-v3/docs/html/20_util/howto.html b/libstdc++-v3/docs/html/20_util/howto.html
index f9594688088..1d425fb3360 100644
--- a/libstdc++-v3/docs/html/20_util/howto.html
+++ b/libstdc++-v3/docs/html/20_util/howto.html
@@ -8,7 +8,7 @@
<META NAME="GENERATOR" CONTENT="vi and eight fingers">
<TITLE>libstdc++-v3 HOWTO: Chapter 20</TITLE>
<LINK REL=StyleSheet HREF="../lib3styles.css">
-<!-- $Id: howto.html,v 1.2 2001/01/23 17:02:27 pme Exp $ -->
+<!-- $Id: howto.html,v 1.3 2001/04/03 00:26:55 pme Exp $ -->
</HEAD>
<BODY>
@@ -96,7 +96,7 @@
<PRE>
struct My_Type
{
- My_Type (My_Type const&amp;);
+ My_Type (My_Type const&amp;);
};
</PRE>
Note the const keyword; the object being copied shouldn't change.
@@ -120,23 +120,10 @@
void f()
{
- std::vector&lt; std::auto_ptr&lt;int&gt; &gt; vec_ap_int;
+ std::vector&lt; std::auto_ptr&lt;int&gt; &gt; vec_ap_int;
}
</PRE>
- Should you try this, you will see an error along the lines of the
- following (look through the ugly line-wrapping):
- <PRE>
-/installdir/include/g++-v3/bits/concept_checks.h: In
- static member function `static _Type
- <B>_STL_ERROR::__const_parameter_required_for_copy_constructor</B>(_Type, const
- _Type&amp;) [with _Type = std::auto_ptr&lt;int&gt;]':
-/installdir/include/g++-v3/bits/concept_checks.h:383: passing
- `const std::auto_ptr&lt;int&gt;' as `this' argument of
- `std::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;()
- [with _Tp1 = int, _Tp = int]' discards qualifiers
- </PRE>
- See the highlighted error? It starts with a message in all caps
- to get your attention.
+ Should you try this with the checks enabled, you will see an error.
</P>
<P>Return <A HREF="#top">to top of page</A> or
<A HREF="../faq/index.html">to the FAQ</A>.
@@ -213,7 +200,7 @@
<P CLASS="fineprint"><EM>
Comments and suggestions are welcome, and may be sent to
<A HREF="mailto:libstdc++@gcc.gnu.org">the mailing list</A>.
-<BR> $Id: howto.html,v 1.2 2001/01/23 17:02:27 pme Exp $
+<BR> $Id: howto.html,v 1.3 2001/04/03 00:26:55 pme Exp $
</EM></P>
OpenPOWER on IntegriCloud