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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users