|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53187 - trunk/libs/variant/doc/tutorial
From: steven_at_[hidden]
Date: 2009-05-22 16:05:27
Author: steven_watanabe
Date: 2009-05-22 16:05:26 EDT (Fri, 22 May 2009)
New Revision: 53187
URL: http://svn.boost.org/trac/boost/changeset/53187
Log:
Replace v with operand in the tutorial. Fixes #1548
Text files modified:
trunk/libs/variant/doc/tutorial/basic.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/variant/doc/tutorial/basic.xml
==============================================================================
--- trunk/libs/variant/doc/tutorial/basic.xml (original)
+++ trunk/libs/variant/doc/tutorial/basic.xml 2009-05-22 16:05:26 EDT (Fri, 22 May 2009)
@@ -83,9 +83,9 @@
<programlisting>void times_two( boost::variant< int, std::string > & operand )
{
- if ( int* pi = <functionname>boost::get</functionname><int>( &v ) )
+ if ( int* pi = <functionname>boost::get</functionname><int>( &operand ) )
*pi *= 2;
- else if ( std::string* pstr = <functionname>boost::get</functionname><std::string>( &v ) )
+ else if ( std::string* pstr = <functionname>boost::get</functionname><std::string>( &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