Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-09-19 15:30:23


Author: bemandawes
Date: 2007-09-19 15:30:23 EDT (Wed, 19 Sep 2007)
New Revision: 39396
URL: http://svn.boost.org/trac/boost/changeset/39396

Log:
Add get_posix_category, get_system_category, to solve order-of-initialization issues
Text files modified:
   trunk/libs/system/doc/reference.html | 30 ++++++++++++++++++++++++------
   1 files changed, 24 insertions(+), 6 deletions(-)

Modified: trunk/libs/system/doc/reference.html
==============================================================================
--- trunk/libs/system/doc/reference.html (original)
+++ trunk/libs/system/doc/reference.html 2007-09-19 15:30:23 EDT (Wed, 19 Sep 2007)
@@ -43,6 +43,8 @@
       &nbsp;&nbsp;&nbsp;Class error_category synopsis<br>
       &nbsp;&nbsp;&nbsp;Class error_category virtual members<br>
       &nbsp;&nbsp;&nbsp;Class error_category non-virtual members<br>
+&nbsp;&nbsp; <a href="#Class-error_category-non-member-functions">Class <code>error_category</code>
+ non-member functions</a><br>
       &nbsp;&nbsp;&nbsp;Class error_category predefined objects<br>
       <a href="#Class-error_code">Class <code>error_code</code></a><br>
       &nbsp;&nbsp;&nbsp;Class error_code synopsis<br>
@@ -243,8 +245,11 @@
       bool operator&lt; ( const error_category &amp; rhs ) const;
     };
 
- extern const error_category &amp; posix_category;
- extern const error_category &amp; system_category;
+ const error_category &amp; get_system_category();
+ const error_category &amp; get_posix_category();
+
+ static const error_category &amp; system_category = get_system_category();
+ static const error_category &amp; posix_category = get_posix_category();
   }
 }</pre>
 </blockquote>
@@ -304,11 +309,24 @@
   </blockquote>
   <p><i>Throws:</i> Nothing.</p>
 </blockquote>
+<h3><a name="Class-error_category-non-member-functions">Class <code>error_category</code>
+non-member functions</a></h3>
+<pre>const error_category &amp; get_system_category();</pre>
+<blockquote>
+ <p><i>Returns:</i> A reference to a <code>error_category</code> object
+ identifying errors originating from the operating system.</p>
+ <p><i>Throws:</i> Nothing.</p>
+</blockquote>
+<pre>const error_category &amp; get_posix_category();</pre>
+<blockquote>
+ <p><i>Returns:</i> A reference to a <code>error_category</code> object
+ identifying portable error conditions.</p>
+ <p><i>Throws:</i> Nothing.</p>
+</blockquote>
 <h3><a name="Class-error_category-predefined-objects">Class <code>error_category</code>
 predefined objects</a></h3>
-<p>Predefined objects <code>posix_category</code>
-and <code>system_category</code> identify portable error conditions and system error
-codes, respectively.</p>
+<p>Predefined objects <code>system_category</code>
+and <code>posix_category</code> identify operating system error codes and portable error conditions, respectively.</p>
 <h2><a name="Class-error_code">Class <code>
 error_code</code></a></h2>
 <p>The class <code>error_code</code> describes an object used to hold error code
@@ -681,7 +699,7 @@
 <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p>
 
 <p>Revised
-<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B %d, %Y" startspan -->September 14, 2007<!--webbot bot="Timestamp" endspan i-checksum="37985" --> </font>
+<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B %d, %Y" startspan -->September 19, 2007<!--webbot bot="Timestamp" endspan i-checksum="38025" --> </font>
 </p>
 
 </body>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk