
dan marsden wrote:
--- Andreas Pokorny <andreas.pokorny@gmx.de> wrote:
Hi there,
I have a slight problem with the construction of a map with fusion::as_map on an empty view:
Should I check if the view is empty before running as_map?
No you should not need to check for empty sequences passed to as_map. This behaviour was caused by a defect in fusion's comparison of the iterators of filter_view. I've checked a fix into cvs and added a test to cover the behaviour.
Compiling your example with the latest version then seems to be ok.
Thanks for picking this one up!
Where is fusion-2 checked in? I'd like to port this fix to Boost main CVS. This problem has been bugging me since November, when I first reported it to Joel. -- Eric Niebler Boost Consulting www.boost-consulting.com