$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: John Femiani (JOHN.FEMIANI_at_[hidden])
Date: 2008-04-24 18:04:10
 
> 
> On Wed, Apr 23, 2008 at 05:06:58AM +0000, Ryan Gallagher wrote:
> > Jeffery Cavallaro <jcavalla <at> google.com> writes:
> > [...]
> > > For example, if I wanted to a program to spit out all of 
> its options 
> > > to standard out, there doesn't seem to be any hooks to extract an 
> > > Any value in a generic way (e.g., as a string).
> > 
> > Okay, this isn't exactly generic and only addresses this 
> specific case 
> > for the issue that you brought up, but for program_options 
> where you 
> > normally just have a limited number of types I've used:
> 
> I've done something similar as well.  If you have a lot of 
> types, and you want support for vectors of those types, you 
> may want to look at the boost preprocessor macro library:
> 
So, could somebody write a visit_any function / macro, or do we need to
do some kind of hack each time. I am imagining a visit_any function that
takes an mpl vector of types as an argument ...
-- John Femiani