2
0
mirror of https://github.com/boostorg/variant.git synced 2026-02-17 14:12:12 +00:00

Merge [42989] and [53187] from the trunk.

[SVN r53196]
This commit is contained in:
Steven Watanabe
2009-05-23 05:27:24 +00:00
parent dcc25e1a1d
commit a400952c16
2 changed files with 3 additions and 3 deletions

View File

@@ -83,9 +83,9 @@ str += " world! ";</programlisting>
<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>