2 Nov
2010
2 Nov
'10
4:22 a.m.
Given an mpl::vector of keys, and a fusion::vector of values, what's the easiest way to create a fusion::map? The obvious solution of just zipping the two sequences and passing the result to fusion::as_map doesn't work because as_map (somewhat narrowly) requires all elements to be fusion::pair, and Fusion's zip algorithm produces sequences of vector2. I'd like to see this generalized so that (a) as_map only requires sequences of 2-tuples and (b) fusion::pair meets the requirements for 2-tuples. -- Eric Niebler BoostPro Computing http://www.boostpro.com