id summary reporter owner description type status milestone component version severity resolution keywords cc 2763 'variant' documentation: bug in times_two() example dan.tsafrir@… ebf "This page: http://www.boost.org/doc/libs/1_38_0/doc/html/variant/tutorial.html defines the following code snippet: void times_two( boost::variant< int, std::string > & operand ) { if ( int* pi = boost::get( &v ) ) *pi *= 2; else if ( std::string* pstr = boost::get( &v ) ) *pstr += *pstr; } in which (1) 'v' is not defined and (2) 'operand' is not used. I suspect that this is not intentional, but rather, a mistake. Specifically, it seems that every occurrence of 'v' should be replaced by 'operand'. " Bugs closed Boost 1.39.0 variant Boost 1.38.0 Problem duplicate documentation