Boost logo

Boost Users :

From: Andrew Schweitzer (a.schweitzer.grps_at_[hidden])
Date: 2006-04-22 19:01:35


François Duranleau wrote:
> On Wed, 5 Apr 2006, Andrew Schweitzer wrote:
>
>
> Also, another 'hack' is that, looking in the code, you can notice that
> variables_map inherits from std::map as well (though it's not documented
> as such). You can thus use standard STL iterators, e.g.
>
> for ( variables_map::iterator i = vm.begin() ; i != vm.end() ; ++ i )
> {
> //...
> }
>
> The type of values iterated over are pairs of std::string and
> boost::program_options::variable_value.

I tried that... but the map is filled with "any" values. You can dump
the argument names, but I don't see a way to dump their values in a
for-loop. Is there a way?

>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net