?
=?ISO-8859-2?Q?Miros=B3aw?= Makowiecki
We have this code:
typedef boost::make_recursive_variant<
int
std::vector< int_tree_t > subresult;
subresult.push_back(3);
subresult.push_back(5);
std::vector< int_tree_t > result;
result.push_back(1);
result.push_back(subresult);
result.push_back(7);
int_tree_t var(result);
According to documentation in library of boost.variant, a variable var
it's ( 1 ( 3 5 ) 7 ).
Queastion:Who do it print in language C++ by next of std::cout?
Thanks in advance.
typedef boost::make_recursive_variant<
int
Use of the resultant variant type is as expected:>::type int_tree_t;
std::vector< int_tree_t > subresult;
subresult.push_back(3);
subresult.push_back(5);
std::vector< int_tree_t > result;
result.push_back(1);
result.push_back(subresult);
result.push_back(7);
int_tree_t var(result);
According to documentation in library of boost.variant, a variable var
it's ( 1 ( 3 5 ) 7 ).
Queastion:Who do it print in language C++ by next of std::cout?
Thanks in advance.