Subject: Re: [boost] fusion - reverse_view on maps
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-10-07 19:35:39
On 10/7/2011 10:43 PM, Brandon Kohn wrote:
> Awhile back I was using fusion.reverse_view on a fusion.map sequence (I think it was
> ~<=1.37 or thereabouts.) In later upgrades this became broken as a bidirectional concept
> was enforced on the reverse_view (quite sensible.) To work around this I made a minor
> change to my version which allowed reverse_view to work on both bidirectional sequences
> and those meeting the is_associative trait. Anyway, it got me wondering if there is a good
> reason that the map type doesn't model a bidirectional sequence?
There's no reason. It might even be random access, after all,
it's built on top of vector. I'd very much welcome a patch.
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk