David Abrahams wrote:
"Neil Hunt"
writes: I guess the main thrust of the question is "Does the parameters library support runtime enumeration?"
Not directly, but it seems like something we (sh/c)ould support, probably by making ArgumentPacks conforming Fusion sequences so you could use boost/spirit/fusion/algorithm/for_each.hpp to enumerate them. The problem is that I don't have expertise with Fusion-1 and AFAIK it's not fully documented. Specifically, I don't know how to make a conforming Fusion sequence. Maybe Joel can help. Joel?
Sure. I'll look into it. Should be a good example for the docs in the making. I'm a bit hesitant to write this for Fusion-1, however, as it will be replaced by Fusion-2 --which, BTW, has a "map" that might be a good replacement for boost parameter's internals. If boost.parameter uses fusion::map, then you automatically have iteration support plus all the algorithms etc. I bet fusion::map will simplify boost.parameter significantly too. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net