Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53196 - branches/release/libs/variant/doc/tutorial
From: steven_at_[hidden]
Date: 2009-05-23 01:27:24


Author: steven_watanabe
Date: 2009-05-23 01:27:24 EDT (Sat, 23 May 2009)
New Revision: 53196
URL: http://svn.boost.org/trac/boost/changeset/53196

Log:
Merge [42989] and [53187] from the trunk.
Text files modified:
   branches/release/libs/variant/doc/tutorial/advanced.xml | 2 +-
   branches/release/libs/variant/doc/tutorial/basic.xml | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: branches/release/libs/variant/doc/tutorial/advanced.xml
==============================================================================
--- branches/release/libs/variant/doc/tutorial/advanced.xml (original)
+++ branches/release/libs/variant/doc/tutorial/advanced.xml 2009-05-23 01:27:24 EDT (Sat, 23 May 2009)
@@ -343,7 +343,7 @@
 
 are_strict_equals visitor;
 assert( std::equal(
- v1.begin(), v1.end(), v2.begin()
+ seq1.begin(), seq1.end(), seq2.begin()
     , <functionname>boost::apply_visitor</functionname>( visitor )
     ) );</programlisting>
 

Modified: branches/release/libs/variant/doc/tutorial/basic.xml
==============================================================================
--- branches/release/libs/variant/doc/tutorial/basic.xml (original)
+++ branches/release/libs/variant/doc/tutorial/basic.xml 2009-05-23 01:27:24 EDT (Sat, 23 May 2009)
@@ -83,9 +83,9 @@
 
 <programlisting>void times_two( boost::variant&lt; int, std::string &gt; &amp; operand )
 {
- if ( int* pi = <functionname>boost::get</functionname>&lt;int&gt;( &amp;v ) )
+ if ( int* pi = <functionname>boost::get</functionname>&lt;int&gt;( &amp;operand ) )
         *pi *= 2;
- else if ( std::string* pstr = <functionname>boost::get</functionname>&lt;std::string&gt;( &amp;v ) )
+ else if ( std::string* pstr = <functionname>boost::get</functionname>&lt;std::string&gt;( &amp;operand ) )
         *pstr += *pstr;
 }</programlisting>
 


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