[Boost-bugs] [Boost C++ Libraries] #1404: Unordered Fusion Map constructors.

Subject: [Boost-bugs] [Boost C++ Libraries] #1404: Unordered Fusion Map constructors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-02 06:10:56


#1404: Unordered Fusion Map constructors.
----------------------------------------------------------+-----------------
 Reporter: Dean Michael Berris <mikhailberis_at_[hidden]> | Owner: djowel
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
----------------------------------------------------------+-----------------
 Currenty, when constructing Fusion Maps, the order of type arguments used
 as template parameters need to be followed in the constructor as well.

 Example:

 {{{

 struct tags {
   struct type_1 { };
   struct type_2 { };
 };

 using namespace boost::fusion ;

 typedef map< pair<tags::type_1, int>, pair<tags::type_2, int> >
 my_map_type ;

 {
   // following line will not compile, because of the argument ordering
   my_map_type instance( make_pair<tags::type_2>(2),
 make_pair<tags::type_1>(1) );

   // following line will compile, because the argument order is the same
 as
   // the order of elements in the fusion map specialization
   my_map_type instace_works( make_pair<tags::type_1>(1),
 make_pair<tags::type_2>(2) );

 }

 }}}

 The feature request is to support arbitrary ordering of constructor
 arguments, not necessarily to follow the order of argument types as
 prescribed in the template arguments to the fusion map.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1404>
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:49:56 UTC