
Ronald Garcia wrote:
Howdy,
I've been working on a parser in Spirit that uses Phoenix and came across an item that I needed to support: operator[] on std::map. Perhaps I overlooked this feature somewhere, but based on the code in operators.hpp, I crafted the following code for myself:
[...]
I suspect that it would need generalizing to be added to Phoenix as it comes with Spirit, but I thought that it would be useful to alert others of the desire for this feature, if not supply a full implementation (I really don't have the time :( ).
There's a full implementation available which includes a lot more (e.g. lazy container functions) by Angus Leeming. It's been lurking around for a long time already. I'll make it a point to make it available in the next release. Angus? -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net