Updated docs - added VC6 bug warning

[SVN r10062]
This commit is contained in:
John Maddock 2001-05-08 11:17:44 +00:00
parent 5ef81b2952
commit 851052fcca

View File

@ -5,7 +5,7 @@
content="text/html; charset=iso-8859-1"> content="text/html; charset=iso-8859-1">
<meta name="Template" <meta name="Template"
content="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot"> content="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Header </title> <title>Header </title>
<boost/compressed_pair.hpp> <boost/compressed_pair.hpp>
</head> </head>
@ -42,6 +42,8 @@ public:
explicit compressed_pair(first_param_type x); explicit compressed_pair(first_param_type x);
explicit compressed_pair(second_param_type y); explicit compressed_pair(second_param_type y);
compressed_pair&amp; operator=(const compressed_pair&amp;);
first_reference first(); first_reference first();
first_const_reference first() const; first_const_reference first() const;
@ -62,17 +64,19 @@ constructor, and this constructor initialises both values in the
pair to the passed value.</p> pair to the passed value.</p>
<p>Note that compressed_pair can not be instantiated if either of <p>Note that compressed_pair can not be instantiated if either of
the template arguments is an enumerator type, unless there is the template arguments is a union type, unless there is compiler
compiler support for boost::is_enum, or if boost::is_enum is support for boost::is_union, or if boost::is_union is specialised
specialised for the enumerator type.</p> for the union type.</p>
<p>Finally, compressed_pair requires compiler support for partial <p>Finally, a word of caution for Visual C++ 6 users: if either
specialisation of class templates - without that support argument is an empty type, then assigning to that member will
compressed_pair behaves just like std::pair.</p> produce memory corruption, unless the empty type has a &quot;do
nothing&quot; assignment operator defined. This is due to a bug
in the way VC6 generates implicit assignment operators.</p>
<hr> <hr>
<p>Revised 08 March 2000</p> <p>Revised 08 May 2001</p>
<p>© Copyright boost.org 2000. Permission to copy, use, modify, <p>© Copyright boost.org 2000. Permission to copy, use, modify,
sell and distribute this document is granted provided this sell and distribute this document is granted provided this
@ -86,7 +90,8 @@ Hinnant and John Maddock.</p>
<p>Maintained by <a href="mailto:John_Maddock@compuserve.com">John <p>Maintained by <a href="mailto:John_Maddock@compuserve.com">John
Maddock</a>, the latest version of this file can be found at <a Maddock</a>, the latest version of this file can be found at <a
href="http://www.boost.org">www.boost.org</a>, and the boost href="http://www.boost.org">www.boost.org</a>, and the boost
discussion list at <a href="http://www.yahoogroups.com/list/boost">www.yahoogroups.com/list/boost</a>.</p> discussion list at <a
href="http://www.yahoogroups.com/list/boost">www.yahoogroups.com/list/boost</a>.</p>
<p>&nbsp;</p> <p>&nbsp;</p>
</body> </body>