[Boost-bugs] [Boost C++ Libraries] #4830: generalize fusion::as_map and fusion::pair

Subject: [Boost-bugs] [Boost C++ Libraries] #4830: generalize fusion::as_map and fusion::pair
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-10 00:35:17


#4830: generalize fusion::as_map and fusion::pair
--------------------------------+-------------------------------------------
 Reporter: eric_niebler | Owner: djowel
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: fusion as_map pair |
--------------------------------+-------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4830>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC