$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-04-10 02:05:39
>> 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?
> 
> You don't have to use the typedefs.  Just replace double_variant with boost::variant<double, bool> and double_tuple with boost::tuple<double_variant,double_variant>.  Is that what you were asking?
Yep, after reading this, it was so clear ;-)
Thanks,
Olaf