From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-04-10 01:21:08


Thank you Jeffrey.

> typedef boost::variant<double, bool> double_variant;
> typedef boost::tuple<double_variant,double_variant> double_tuple;
...
> std::ostream& operator<<( std::ostream& os, const double_variant& p )
> {
> output_visitor out_v(os);
> boost::apply_visitor(out_v,p);
> return os;
> }
...

This works, but is there a generic way without global typedefs?

Thanks,
Olaf