Update of /cvsroot/boost/boost/libs/date_time/xmldoc
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17887

Modified Files:
      Tag: RC_1_34_0
        usage_examples.xml 
Log Message:
small documentation fix suggested by Dave A.

Index: usage_examples.xml
===================================================================
RCS file: /cvsroot/boost/boost/libs/date_time/xmldoc/usage_examples.xml,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -u -d -r1.6 -r1.6.4.1
--- usage_examples.xml  15 Jun 2005 04:11:22 -0000      1.6
+++ usage_examples.xml  8 Nov 2006 00:03:09 -0000       1.6.4.1
@@ -16,8 +16,8 @@
     for more details.
 
     <programlisting><emphasis role="keyword">using namespace</emphasis> 
boost::gregorian;
-    date weekstart(<emphasis role="number">2002</emphasis>,Feb,<emphasis 
role="number">1</emphasis>);
-    date weekend  = weekstart + week(<emphasis role="number">1</emphasis>);
+    date week_start(<emphasis role="number">2002</emphasis>,Feb,<emphasis 
role="number">1</emphasis>);
+    date week_finish  = week_start + week(<emphasis 
role="number">1</emphasis>);
     date d2 = d1 + days(<emphasis role="number">5</emphasis>);
     date today = day_clock::local_day();
     if (d2 &gt;= today) {} <emphasis role="comment">//date comparison 
operators</emphasis> 
@@ -26,8 +26,8 @@
     <emphasis role="keyword">if</emphasis> (thisWeek.contains(today)) 
{}<emphasis role="comment">//do something 
 
     //iterate and print the week</emphasis>
-    day_iterator itr(weekstart);
-    <emphasis role="keyword">while</emphasis> (itr &lt;= weekend) {
+    day_iterator itr(week_start);
+    <emphasis role="keyword">while</emphasis> (itr &lt;= week_finish) {
      std::cout &lt;&lt; (*itr) &lt;&lt; std::endl;
      ++itr;
     }  


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to