[Boost-bugs] [Boost C++ Libraries] #2960: Composing argument pack formed with positional arguments, using the comma operator

Subject: [Boost-bugs] [Boost C++ Libraries] #2960: Composing argument pack formed with positional arguments, using the comma operator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-19 16:33:52


#2960: Composing argument pack formed with positional arguments, using the comma
operator
------------------------------+---------------------------------------------
 Reporter: e_r | Owner: danielw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: parameter
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Due to a bug (or perhaps my misusage), I am unable to compose two
 argument packs, each formed using positional arguments, using the comma
 operator.

 news://news.gmane.org:119/grtmb9$tpq$1@ger.gmane.org
 Compiler : i686-apple-darwin9-gcc-4.0.1

 BOOST_PARAMETER_KEYWORD(tag, x)
 BOOST_PARAMETER_KEYWORD(tag, y)
 template<class ArgumentPack>
 void f(ArgumentPack const & args){
      double x_val = args[x];
      double y_val = args[y];
 }

     typedef boost::parameter::parameters<
         parameter::required<tag::x>
> par_x_t;
     typedef boost::parameter::parameters<
         parameter::required<tag::y>
> par_y_t;

      double x_val = 9.0;
      double y_val = 0.1;
      spec_x_t spec_x;
      spec_y_t spec_y;
      f(
          ( spec_x(x_val),spec_y(y_val))
      ); //no match operator[<unnamed>::x]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2960>
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:00 UTC